0
我正面临着高层建筑的一个问题。Highcharts自定义出口隐藏重置
我有这样的代码这使得自定义下载,而不是highcharts默认打印和下载:
$('#container').highcharts({
exporting: {
buttons: {
contextButton: {
enabled: false
},
exportButton: {
text: 'Download',
y:30,
//x: 1,
//y: 5,
// Use only the download related menu items from the default context button
menuItems: Highcharts.getOptions().exporting.buttons.contextButton.menuItems.splice(2)
},
printButton: {
text: 'Print',
y: 30,
onclick: function() {
this.print();
}
}
}
}
});
此代码工作正常,当我一旦称呼它,但是当我再次调用它无需刷新页面,下载按钮不会显示所有选项,如下载为pdf,下载为图像等。
任何帮助?
谢谢。
修复了这个问题,感谢队友。 – Parkash