toucanjake
Posts: 1
Joined: Wed May 11, 2022 10:01 pm

Configuring Exporting Menu for Data Table

Hello!

I have a bit of an odd use case. I'm looking to basically disable every menu item within the exporting options except for showing a data table. We want to just be able to provide end users with an option to generate a table with the data, but not allow them to save the charts as a PNG or vector or any of the other default options. Is that something that can be configured?

(A secondary question is if it's possible to only have the data show the currently selected series of the graph above - so if we have five series, and the middle series is selected, only the data from that series shows up in the table. Is that doable?)

Thank you!
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Configuring Exporting Menu for Data Table

Hi toucanjake,

Welcome to our forum and thanks for contacting us with your question!

To define which buttons should be shown in export menu, you should use menuItems property.
Demo:https://jsfiddle.net/BlackLabel/eofp07sb/
API reference: https://api.highcharts.com/highcharts/e ... .menuItems

When it comes to your second question, it sounds like a default behaviour, when series are toggled, their values are shown in the data table. When series is hidden its values are omitted. If you're looking for something else, please let me know.

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”