GeekExplorer
GeekExplorer

Reputation: 260

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

Upvotes: 1

Views: 1024

Answers (1)

morganfree
morganfree

Reputation: 12472

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

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

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

Upvotes: 1

Related Questions