agudulin
Posts: 2
Joined: Fri Mar 26, 2021 11:19 am

line chart & bar chart sharing y-axis

Hi all,

I'm trying to find a way how to make this chart:
Screenshot_2021-03-11_at_12.16.19.png
Screenshot_2021-03-11_at_12.16.19.png (178.05 KiB) Viewed 206 times
See my example here: https://codepen.io/agudulin/pen/KKaVVaP?editors=0010

My problem is that when i change the type of green chart from "column" to "bar", it swaps x-axis and y-axis for the whole chart and not only for the green one. Inverting charts in different combination doesn't seem to work, too.

Custom technical indicators might be helpful, but it requires way too much effort to implement it. Here is an example of an indicator which looks similar: https://github.com/highcharts/highchart ... dicator.ts

Do you have any hints how to make it happen? :)

Thanks!
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: line chart & bar chart sharing y-axis

Hello agudulin!

Unfortunately, it's not possible to connect line and bar series in a way you've shown it in your image. The bar chart makes the chart inverted so the line series is also inverted. You could try to add one chart into another, but I'm not sure if it would meet your expectations.

Best regards!
Dominik Chudy
Highcharts Developer
agudulin
Posts: 2
Joined: Fri Mar 26, 2021 11:19 am

Re: line chart & bar chart sharing y-axis

dominik.c wrote: Mon Mar 29, 2021 8:42 am Unfortunately, it's not possible to connect line and bar series in a way you've shown it in your image. The bar chart makes the chart inverted so the line series is also inverted. You could try to add one chart into another, but I'm not sure if it would meet your expectations.

Oh well, thank you very much for the prompt reply :)
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: line chart & bar chart sharing y-axis

You're welcome!

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

Return to “Highcharts Stock”