lucasbara
Posts: 10
Joined: Fri Sep 02, 2022 2:10 pm

How to fill gap between two series?

Hi guys!

I have an area-spline chart where I show the volume and the price of a Stock.
The problem is that I have a gap between the two series because it's missing the price in the middle.
Is there any way to fill this gap?

https://jsfiddle.net/lucasbara/h1ybpfwe/1/

Thanks,
Lucas
User avatar
dawid.d
Posts: 845
Joined: Thu Oct 06, 2022 11:31 am

Re: How to fill gap between two series?

Hi,

Thanks for contacting us with your question!

I think you might find the breaks option for xAxis useful. See: https://api.highcharts.com/highcharts/xAxis.breaks
If you want to draw a line there, you can use the plotLines for that: https://api.highcharts.com/highcharts/xAxis.plotLines

Demo: https://jsfiddle.net/BlackLabel/04yqr1vh/

Let me know if that was what you were looking for!
Best regards
Dawid Draguła
Highcharts Developer

Return to “Highcharts Stock”