Highcharts context menu button appearing thrice for the same chart

好久不见. 提交于 2019-12-13 17:07:42

问题


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"


回答1:


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.



来源:https://stackoverflow.com/questions/17470797/highcharts-context-menu-button-appearing-thrice-for-the-same-chart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!