arg02
Posts: 6
Joined: Sun Apr 18, 2021 10:18 am

Is there a Maximum number of errorbars allowed?

Hello.

This works with only a few errorbars associated with the first few points.
https://jsfiddle.net/arg02/93yebz0d/45

This attempts to put errorbars on every point. It takes a long time to load and then doesn't put any errors bars on. There are about 27,000 points in each series.
https://jsfiddle.net/arg02/93yebz0d/47

Is there a better way to do this? Load from a json file? Asynchronous load?

Actually the error associated with each point is the same for the whole series. Is there an option to define the error for a series globally? Either as a percentage or a number.

Thanks,
Andy
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Is there a Maximum number of errorbars allowed?

Hello arg02,

Thanks for contacting us with your questions.

Unfortunately it is not possible to define one errorbar value globally, you have to add it for each point.

When it comes to performance issues, we recommend using boost module when your data consists of more than few thousands points. That module doesn't work for all series types though, and in this case it would boost line series and errorbar not. You can read more about boost module here: https://www.highcharts.com/docs/advance ... ost-module

There is no maximum number of errorbars allowed. Your errorbars are displayed correclty but there are simply too many points and errorbars overlap with eachother. Zoom the chart to see it.
errorbar.png
errorbar.png (13.82 KiB) Viewed 215 times
Demo: https://jsfiddle.net/BlackLabel/todrnugL/

Asynchronous actions should help in this case, especially with adding these errorbars, because it seems pointless to me with so many initial points on the chart. I would suggest use lazy loading and adding errorbars when chart zoomed. You can find example with implementation here: https://www.highcharts.com/demo/stock/lazy-loading

Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer
arg02
Posts: 6
Joined: Sun Apr 18, 2021 10:18 am

Re: Is there a Maximum number of errorbars allowed?

Thanks for the reply Mateusz.

Actually the errors bars are not showing correctly. If you notice on your demo, the error bar series starts at 1st Jan 1970 (default start of unix date)
But actually i have this because my series data starts 25-07-2019 06:30

plotOptions: {
series: {
pointStart: 1564079400000,
pointInterval: 1000 * 60 * 15
},

It seems the error bar series is not attaching correctly to the previous series, or not respecting the pointStart setting.

Thanks,
Andy
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Is there a Maximum number of errorbars allowed?

Hello arg02,

Sorry for late reply, but frankly speaking it took me a while to figure out what exactly is wrong. Obviously you were right, errorbars were misplaced, I didn't notice it before.

There are actually two issues, first one is most likely a bug related to turboThreshold option. It was the the cause of errorbars misplacement. Setting its value to 0 should solve the problem. Here are related GH issues: https://github.com/highcharts/highcharts/issues/3765,
https://github.com/highcharts/highcharts/issues/12506

Second issue is disabled data grouping, but enabling it is not enough, you need to change the dataGrouping.approximation value to 'range' which finds the low and high values.
Demo: https://jsfiddle.net/BlackLabel/uxgrjhft/
API reference: https://api.highcharts.com/highstock/se ... roximation,
https://api.highcharts.com/highstock/pl ... oThreshold

Let me know what do you think about the solution and if you have any futher questions.
Best regards!
Mateusz Bernacik
Highcharts Developer
arg02
Posts: 6
Joined: Sun Apr 18, 2021 10:18 am

Re: Is there a Maximum number of errorbars allowed?

Thank you Mateusz, deeply appreciate your help on this. Huge huge thanks from me.

Andy
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Is there a Maximum number of errorbars allowed?

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”