GeekExplorer GeekExplorer - 1 year ago 94
jQuery Question

Highchart Hide/Remove Annotation buttons on export

Is there any property to remove/hide Annotation Button when a Chart is exported to PDF/PNG.
Refer to this fiddle link

exporting: {
buttons: {
contextButton: {
menuItems: [
{
textKey: 'downloadPDF',
onclick: function () {
this.exportChart({
type: 'application/pdf'
});
}
}]
}
}
}


Export with Annotations

Answer Source

You need to set annotationsOptions.enabledButtons to false in the exporting options.

 exporting: {
          chartOptions: {
            annotationsOptions: {
              enabledButtons: false
            }
          },

example: http://jsfiddle.net/4s57pwns/4/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download