sgtpepper
Posts: 1
Joined: Thu Dec 06, 2018 9:13 am

Checkbox to show/hide all series

Thu Dec 06, 2018 10:25 pm

I would like to put a checkbox to the left of the text Hide/Show all series above the legends.

How do I put the checkbox and text there and how do I create the Hide/Show all functionin pure javascript code?

rafalS
Posts: 664
Joined: Thu Jun 14, 2018 11:40 am

Re: Checkbox to show/hide all series

Fri Dec 07, 2018 10:56 am

Hi, sgtpepper!

You didn't give me much details so I am not sure if our Highcharts legends with checkboxes will be enough for you.
You can always create your own custom legend and use series.hide() and series.show() method.

Some useful API: https://api.highcharts.com/highcharts/p ... owCheckbox
https://api.highcharts.com/class-refere ... eries#hide
https://api.highcharts.com/class-refere ... eries#show

Let me know if you need any specific informations.

Best regards!
Rafal Sebestjanski,
Highcharts Developer

Return to “Highcharts Usage”