BilldaCat
Posts: 11
Joined: Fri Jun 24, 2022 6:46 pm

Multiple candlesticks and y axis?

Is it possible to have 2 candlestick series on the same chart, with different yAxis? I haven't been able to figure it out -- it ends up as one big candlestick, but the mouseover shows the data for both.

The goal would be to graph something like BTC/USD and ETH/USD on the same chart, but with different y axis due to the large difference in price.

Thanks!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Multiple candlesticks and y axis?

Hi there,

Thank you for asking this question!

Of course it is possible to plot multiple series on one chart, even while using different yAxis. Take a look at the simplified example below. In this example, the yAxis have different top and height parameters to plot second series below the first one. Feel free to use your data, and change those parameters to adjust the chart to your needs.

Demo: https://jsfiddle.net/BlackLabel/9qn8mycp/

In case on any other questions, feel free to contact us anytime,
Best regards!
Kamil Musiałowski
Highcharts Developer
BilldaCat
Posts: 11
Joined: Fri Jun 24, 2022 6:46 pm

Re: Multiple candlesticks and y axis?

kamil.m wrote: Tue Nov 01, 2022 6:12 pm Hi there,

Thank you for asking this question!

Of course it is possible to plot multiple series on one chart, even while using different yAxis. Take a look at the simplified example below. In this example, the yAxis have different top and height parameters to plot second series below the first one. Feel free to use your data, and change those parameters to adjust the chart to your needs.

Demo: https://jsfiddle.net/BlackLabel/9qn8mycp/

In case on any other questions, feel free to contact us anytime,
Best regards!
Awesome - thanks! Creative way to do it.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Multiple candlesticks and y axis?

Creative, and definitely the most recommended one by us - the Highcharts team :)

Good luck with your project!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”