Remove Export and print button plugin on highchart chart

Obsivus picture Obsivus · May 18, 2012 · Viewed 55k times · Source

I am using MVC and currently working with highchart

I am using the Exporting.js so users can print or export the highchart chart. I have two charts in a view and I would like to disable print and export on one of the chart. How can I do that?

Exporting.js is automaticly giving charts these 2 button options.

Thanks in dvance

Correct solution:

.SetExporting(new Exporting { Enabled = false, EnableImages = false });

Answer

Jashwant picture Jashwant · May 18, 2012

You can disable both the buttons (i.e. the whole exporting section) simulataneously by,

exporting: {
         enabled: false
}

You can also disable any one or both of them like this,

exporting: {
    buttons: { 
        exportButton: {
            enabled:false
        },
        printButton: {
            enabled:false
        }

    }
}