dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

selection of yAxis on highchart stock.

Hello,

I'm making stock chart with multiple yAxis and it's hard to read this chart because Y series have different range of values.

I want to select one series initially, is there any option like <selected> of HTML?

Best regards.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: selection of yAxis on highchart stock.

Hello dwjung!

We appreciate you reaching out to us!

I'm not sure if I understood you correctly. Do you want to have a possibility to be able to choose which series should be displayed as the only one? You can create a button that will update the visibility of a series or yAxis like that: https://jsfiddle.net/BlackLabel/153xsmjr/

API references:
https://api.highcharts.com/highcharts/yAxis.visible
https://api.highcharts.com/highcharts/s ... ne.visible
https://api.highcharts.com/class-refere ... xis#update
https://api.highcharts.com/class-refere ... ies#update

If this is not what you were looking for, please precise your requirements.
Best regards!
Dominik Chudy
Highcharts Developer
dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

Re: selection of yAxis on highchart stock.

Hello dominik.c,

Thank you for your help.

Best regards.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: selection of yAxis on highchart stock.

You're welcome!

In case of any further questions, feel free to contact us again.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”