dflak
Posts: 1
Joined: Mon Jan 27, 2020 7:41 pm

Stacked column and dual spline issue

I have the parameters below. The chart works great, except for the fact that the values on the blue spline don't match up with the y-axis. I know I suppose I could solve it by adding a second y-axis,; however, in our situation, these number should never diverge enough to warrant separate axes.

https://codepen.io/discern/pen/ExNpvZY

If I remove stacking: normal from the series element, the spline lines up, but then the column are no longer stacked.

I believe the issue is either stacking- or y-axis-related, but I'm at a loss. Any help would be greatly appreciated.

Thanks!

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

Re: Stacked column and dual spline issue

Hello dflak!

Welcome to our forum and thanks for contacting us with your question!

To match the yAxis ticks with your data we only need to disable stacking on every series and keep it on column series. The mistake you've made here is that in plotOptions you wrote columns instead of column.

Demo:
https://jsfiddle.net/BlackLabel/6h2aq5dw/

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Usage”