, 당신은 단지 exporting.buttons.contextButton.menuItems
배열의 요소로 다음 코드를 추가 할 수 있습니다
{ separator: true }
다음 코드는 차트 내부에 직접 추가 할 것 옵션을 선택하고 모든 단일 항목을 분리하는 방법을 보여줍니다 (see it on JSFiddle) :
exporting: {
buttons: {
contextButton: {
menuItems: [{
textKey: 'printChart',
onclick: function() {
this.print();
}
}, {
separator: true
}, {
textKey: 'downloadPNG',
onclick: function() {
this.exportChart();
}
}, {
separator: true
}, {
textKey: 'downloadJPEG',
onclick: function() {
this.exportChart({
type: 'image/jpeg'
});
}
}, {
separator: true
}, {
textKey: 'downloadPDF',
onclick: function() {
this.exportChart({
type: 'application/pdf'
});
}
}, {
separator: true
}, {
textKey: 'downloadSVG',
onclick: function() {
this.exportChart({
type: 'image/svg+xml'
});
}
}]
}
}
}
그래서 나는 PNG를 다운로드하고, JPEG를 다운로드하고, d PDF 및 다른 파일을 줄 지어 분리 할 수 있습니까? –
@ 모토 : 예. "Download XLS"와 "Link to more ..."사이에서 동일합니다. – luftikus143
메뉴에 대한 코드 만 게시 할 수 있으므로 u를 어디에 넣을 지 알려줄 수 있습니다. 단지 1 줄의 CSS를 넣어야합니다. –