Highcharts帮助 - 面积图堆叠 [英] Highcharts help - Area chart stacking

查看:869
本文介绍了Highcharts帮助 - 面积图堆叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我没有正确理解区域图,但这里是一个图像,以正确显示问题是什么,我正在寻找:

Maybe I am not understanding the area chart properly but here is an image to properly display what the problem is and what I am looking for:

有人可以解释为什么堆叠:正常显示值?如何可能修复它?我已经尝试堆叠:null和堆叠:百分比,但两者都没有给出预期的结果。

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.

编辑:我看到我的错误,如何解决它。我需要在一个组中绘制两个系列,以便它们一起呈现,而不是规范化。任何想法?

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?

推荐答案

使用堆叠时,某个x值的每个系列的值会添加在一起,y值对应于累积序列的总和。所以上面的图表看起来确定我想。
对于2010-08它添加2 + 4 = 6这是y轴的值,
为2010-09它添加4 + 4 = 8。

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.

为了使您的数据与堆叠一起工作,您需要从total中减去in-service。或者可能有两个系列命名为服务中和服务中断。当堆叠这两个系列时,你将得到总数。

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.

这篇关于Highcharts帮助 - 面积图堆叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆