Skip to content
This repository

Area thresholds and stacking does not work together #1059

Open
eolsson opened this Issue · 2 comments

2 participants

Erik Olsson highslide-software
Erik Olsson
Collaborator
  1. Open http://jsfiddle.net/n9n4k/, setting threshold to null should correspond to the x axis line
  2. Notice that the red area isn't filled
  3. Test with threshold of 100 => chart is broken.
  4. Test with threshold of 0 => ok

Looks like the threshold cannot be higher than the smallest value in the stacked series.

highslide-software

As a workaround, you can set the closedStacks property to true. This causes the bottom line of areas to follow the threshold line rather than the previous series. As a consequence, the areas don't look stacked, because they are overlaid on top of each other. So it may look better if fillOpacity is 1.

http://jsfiddle.net/highcharts/n9n4k/3/

highslide-software

Here's how others solve stacks across the threshold. Both Excel and GS solve this the same way, by letting the second series be stacked on top of the first one even if the first starts in a negative position.

Excel

2013-06-24_0929

Google Spreadsheets

2013-06-24_0931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.