38

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

1 Answer 1

92

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.