Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts - how to remove "Open in Highcharts Cloud" from the export menu

Tags:

highcharts

I am using the export-data module of highcharts. By default the export menu has the option "Open in Highcharts Cloud". How do I remove this option from the menu?

like image 720
shuaybi Avatar asked Dec 23 '22 06:12

shuaybi


1 Answers

You can define the items in the exporting menu with exporting.buttons.contextButton.menuItems option.

If you want to exclude only openInCloud item then you can filter out it from the default menu items.

exporting: {
  buttons: {
    contextButton: {
      menuItems: Highcharts.getOptions().exporting.buttons.contextButton.menuItems.filter(item => item !== 'openInCloud')
    }
  }
}

live example: http://jsfiddle.net/1unnkdt1/

like image 194
morganfree Avatar answered Jun 07 '23 03:06

morganfree