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?

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 method.

Some useful API: ... owCheckbox ... eries#hide ... eries#show

Let me know if you need any specific informations.

Best regards!
Rafal Sebestjanski,
Highcharts Developer

Return to “Highcharts Usage”