Highcharts上下文菜单按钮对同一图表显示三次 [英] Highcharts context menu button appearing thrice for the same chart
本文介绍了Highcharts上下文菜单按钮对同一图表显示三次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个高级图表。但是当图表加载完成后,我可以看到3个按钮用于上下文菜单,并且只有其中一个功能正常。请看图片:
我刚刚在html中包含了这些脚本标签:
src =http://code.highcharts.com/highcharts.js
src =http://code.highcharts.com/modules/exporting.js
解决方案
尝试添加导出选项:
var chart1 = new Highcharts.Chart({
chart:{
// ...
},
导出:{
按钮:{
contextButtons:{
启用:false,
menuItems:
$ true
code $ $ p $ > b
到你的图表选项,看来它可以解决你的问题。编辑:我只是编辑代码,尝试一下。
I am creating a highcharts. But when the chart finishes loading, i can see 3 buttons for context menu and only one of them functional. Please look at the image:
I have just included these script tags in the html:
src="http://code.highcharts.com/highcharts.js"
src="http://code.highcharts.com/modules/exporting.js"
解决方案 Try to add the exporting options :
var chart1 = new Highcharts.Chart({
chart: {
// ...
},
exporting: {
buttons: {
contextButtons: {
enabled: false,
menuItems: null
}
},
enabled: true
},
// ...
to your charts options. It seems that it could resolved your problem.
EDIT : I just editing the code, try it.
这篇关于Highcharts上下文菜单按钮对同一图表显示三次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文