onemenny
Posts: 29
Joined: Wed Jul 23, 2014 3:33 pm

highcharts error on area / area-range with null points

Hi

highcharts throws an error when there datapoints in an arearange with null values
please view http://jsfiddle.net/onemenny/cd2d5b5y/

stack.total = correctFloat(stack.total + (y || 0)); //y value is [null, null]
.
.
.
return parseFloat(
num.toPrecision(14)
);


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

Re: highcharts error on area / area-range with null points

The problem is that you are tyring to set "stacking" property for area range. Remove that option: http://jsfiddle.net/cd2d5b5y/1/
Paweł Fus
Highcharts Developer
onemenny
Posts: 29
Joined: Wed Jul 23, 2014 3:33 pm

Re: highcharts error on area / area-range with null points

I know, but your documentation states otherwise: http://api.highcharts.com/highcharts#pl ... e.stacking

so i thought you are enabling it on arearange as well...
Fusher
Posts: 7912
Joined: Mon Jan 30, 2012 10:16 am

Re: highcharts error on area / area-range with null points

Looks like bug in docs, as I know, x-range series doesn't support stacking at all. I will check this, thanks!
Paweł Fus
Highcharts Developer
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: highcharts error on area / area-range with null points

You're right, stacking doesn't work for area range. We have removed it from the API now, and also fixed it so that it doesn't throw an error if the developer accidentally leaves the option there. See https://github.com/highslide-software/h ... 85ad69a0be
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highcharts Usage”