jfs
Posts: 14
Joined: Mon Jan 03, 2022 8:14 pm

set default selection state in legend

Hi,

can a serie be unselected by default in the legend ? I would like to hide some series when opening the chart with possibility to activate them in the legend.
I hope you understand what i mean.I did not find this option in the API reference

Thanks
jfs
jfs
Posts: 14
Joined: Mon Jan 03, 2022 8:14 pm

Re: set default selection state in legend

sorry for asking to quick. Got it. visible:false

jfs
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: set default selection state in legend

Hi,

Thanks for contacting us with the question!

I'm glad you managed to deal with the problem by yourself and thanks for sharing the solution with others!

You can read more about the series visibility option here: https://api.highcharts.com/highcharts/s ... mn.visible

In case of any other questions, feel free to contact us anytime!
Best Regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Usage”