highslide-software/highcharts.com — Issue #809: Stacked series display incorrect threshold with multiple axis and series out of order
Author: shiftyp
Created: 2012-03-06 16:13:37+00:00
State: open

I wasn't really sure how to come up with a title for this one. Basically this issue is with [this](https://github.com/highslide-software/highcharts.com/blob/e301d0cffd4ecbf1f9034afea4414770808c37d5/js/parts/Series.js#L527) line, [this](https://github.com/highslide-software/highcharts.com/blob/e301d0cffd4ecbf1f9034afea4414770808c37d5/js/parts/Series.js#L1096) line, [this](https://github.com/highslide-software/highcharts.com/blob/e301d0cffd4ecbf1f9034afea4414770808c37d5/js/parts/Series.js#L1101) line, and [this](https://github.com/highslide-software/highcharts.com/blob/e301d0cffd4ecbf1f9034afea4414770808c37d5/js/parts/Series.js#L1129) line of code in Series.js. These series index calculations assume that the series have been input into the chart in a specific order. The issue arises because the index of a particular series relative to all series added to the chart does not necessarily match the index of that series relative to all series added to a specific y-Axis. See [this fiddle](http://jsfiddle.net/SSQun/) and [this fiddle](http://jsfiddle.net/FS7Fe/) for examples where the threshold for a stacked area series is set to zero because it is incorrectly determined to be the last visible series in a chart. There are probably other issues caused by this incongruity, but this is the one I encountered.