Orion31
Posts: 2
Joined: Tue Sep 28, 2021 1:25 am

Is there an equivalent of Highstock's gapSize in Highcharts?

Screenshot 2021-09-27 212738.jpg
Screenshot 2021-09-27 212738.jpg (14.05 KiB) Viewed 230 times
In the attachment, there is a straight line between two distant points. I would like for Highcharts to not connect points if the distance between the two x-values is greater than a certain relative size (just like how Highstocks' plotOptions.series.gapSize works). However, I cannot find any documentation for such an option that does not require Highstock. Is there a way to do this?

Thanks!
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Is there an equivalent of Highstock's gapSize in Highcharts?

Hello,

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

You can achieve this by adding point to data with a null value between these points.

Demo: https://jsfiddle.net/BlackLabel/dy7cvwr2/

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
Orion31
Posts: 2
Joined: Tue Sep 28, 2021 1:25 am

Re: Is there an equivalent of Highstock's gapSize in Highcharts?

michal.f wrote: Tue Sep 28, 2021 9:30 am Hello,

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

You can achieve this by adding point to data with a null value between these points.

Demo: https://jsfiddle.net/BlackLabel/dy7cvwr2/

Let me know if you have any further questions!
Best regards!
Thank you so much! It worked perfectly!
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Is there an equivalent of Highstock's gapSize in Highcharts?

You're welcome!

Feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”