Exporting 2 button option issue in highchart

247 views Asked by At

I am using highchart, in that two button coming for exporting but I only want one

i tried the code below but it's not working..

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

Please help? Or any suggestions?

1

There are 1 answers

3
Jignesh Suvariya On

Use this

exporting: {
            buttons: {
                contextButton: {
                    menuItems: null,
                    onclick: function() {
                        this.exportChart();
                    }
                }
            }
        }

This will generate direct export button without any context menu

Check out this link

http://jsfiddle.net/HnGMZ/