开发者

Highcharts help - Area chart stacking

Maybe I am not understanding the area chart properly but here is an image to properly display what the p开发者_如何学运维roblem is and what I am looking for:

Highcharts help - Area chart stacking

Can someone explain why stacking: normal display values like it does? And how to possibly fix it? I have tried stacking: null, and stacking: percent, but both do not give the desired results.

EDIT: I see my error, however, I'm not sure how to fix it. I need to graph the two series in a group so that they are rendered together and not normalized. Any ideas?


When stacking is used, the values of each series for a certain x-value is added together (stacked), and the y-value corresponds to the total of the accumulated series. So the upper graphs looks ok I think. For 2010-08 its adding 2 + 4 = 6 which is the value of the y-axis and, for 2010-09 its adding 4 + 4 = 8.

To make your data work with stacking, you want to subtract the 'in-service' from 'total'. Or maybe have two series named 'in-service' and 'out-of-service'. When stacking those two series you will get the total.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜