Fusher
Posts: 7912
Joined: Mon Jan 30, 2012 10:16 am

Re: series.data array sometimes contains null entries

Ticket is still opened.
Paweł Fus
Highcharts Developer
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: series.data array sometimes contains null entries

Sorry for the delay!

We've seen this problem coming for a while, so I finally refactored the code so that non-instanciated points can also be removed.

I added a new method, Series.removePoint, that takes the point index as an argument.

See http://jsfiddle.net/highcharts/yozwauke/ for demo.

The commit can be seen at https://github.com/highslide-software/h ... bac81b7400, and you should be able to apply the patch directly to Highcharts 4.0.4/Highstock 2.0.4 using the instructions at https://github.com/highslide-software/h ... pply-a-fix
Torstein Hønsi
CTO, Founder
Highsoft
ctusch
Posts: 9
Joined: Fri Oct 17, 2014 5:30 pm

Re: series.data array sometimes contains null entries

Thanks for the fix!

An observation about the patch: It doesn't really matter to me but it seems like it now always instantiates points in the data array even when they are above the cropThreshold. If you want to check I have changed the script reference to the new version in my sample: http://jsfiddle.net/a90d60q3/4/
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: series.data array sometimes contains null entries

It doesn't happen in this case though... http://jsfiddle.net/highcharts/yozwauke/1/
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highcharts Usage”