Settings and activity
1 result found
-
22 votes
This is the corresponding GitHub issue: https://github.com/highslide-software/highcharts.com/issues/1059
An error occurred while saving the comment
1 result found
This is the corresponding GitHub issue: https://github.com/highslide-software/highcharts.com/issues/1059
I've taken David's jsfiddle and managed to produce a pretty satisfying result by splitting each series into a positive and a negative component. E.g.,
`[-500, -100, 200, 300]`
becomes
`[0, 0, 200, 300]` and
`[-500, -100, -epsilon, -epsilon]`.
Here, epsilon is a very small number, e.g. 0.00001 (depending on your data), such that all values are absolutely less than 0.
The series are then put into the series array, first the positive versions, and then the negative series in reverse order.
Unfortunately there isn't a straightforward way to fix the legend, which will now contain each series title twice, but at least the chart looks ok.
See my JSFiddle: http://jsfiddle.net/bavanandel/3t5ez/