redwolf_cr7
redwolf_cr7

Reputation: 2037

Highcharts context menu button appearing thrice for the same chart

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:enter image description here

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"

Upvotes: 2

Views: 9376

Answers (1)

Pierre Fourgeaud
Pierre Fourgeaud

Reputation: 14510

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.

Upvotes: 3

Related Questions