Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide line in default state in Highcharts

How to hide line in default state in Highcharts js-script?

I have ~7 series on my canvas, 3-4 of them are optional and I want to make them hidden when the page is load, but also show them in legend, to inform user, that he can enable them if wants

like image 956
Egor Sazanovich Avatar asked Jan 06 '12 08:01

Egor Sazanovich


1 Answers

Oh, I found it, hope the solution will save time for someone. Use visible:false in series defenition

series: [{            name: 'MyHiddenLine',            data: [1,2,3],            visible: false         }, 
like image 186
Egor Sazanovich Avatar answered Oct 02 '22 17:10

Egor Sazanovich