Leogeek
Posts: 5
Joined: Thu May 05, 2022 5:58 am

How to disable the content menu

Hi,

How to disable the context menu instead of hiding it completely?

This is what I have tried, I want to keep the button with the disabled meu option for no data

Code: Select all

Highcharts.chart('container', {
  series: [{
    data: []
  }],

  exporting: {
    enabled: false
  }
});
Link : http://jsfiddle.net/nxkLg4re/

Thanks
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: How to disable the content menu

Hi Leogeek,

Thanks for contacting us with your question.

There is no such option in our API and to do so you need to extend (overwrite) addButton method:
https://jsfiddle.net/BlackLabel/L1c54r7w/

Here you can read more about extending highcharts:
https://www.highcharts.com/docs/extendi ... highcharts

Let me know if it was what you were looking for.
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”