2
votes

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"

1
Ok, but what is your code ? The code who generate this chart ?Pierre Fourgeaud
nothin unusual with the code pierre. Tried to paste the code here.. but it says too long... In the code im just creating the chart from json data and rendering it to the container. I have done nothing specific to the context menu. Am i missing something?redwolf_cr7
Past your code in a tool like pastie.org and give us the link it would be a lot easier for us to figure out what is wrong.Pierre Fourgeaud
Please find my code here: pastie.org/8109842redwolf_cr7
And you have the three buttons right after clicking on the button #Button1 or after many clicks ?Pierre Fourgeaud

1 Answers

3
votes

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.