Egor Sazanovich
Egor Sazanovich

Reputation: 5089

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

Upvotes: 38

Views: 24567

Answers (1)

Egor Sazanovich
Egor Sazanovich

Reputation: 5089

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
        },

Upvotes: 92

Related Questions