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
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
},
visible
is documented at api.highcharts.com/highcharts#plotOptions.series.visible
Nov 29, 2013 at 15:26
visible
documentation has moved to the series subcategories, e.g., api.highcharts.com/highcharts/series.line