Highcharts 3.0,堆积和垛堆的面积图 - 如何解决? [英] Highcharts 3.0, area chart with stacked and unstacked series - how to fix?

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

问题描述

我有一个复杂的面积图,它使用了一些堆叠的和一些没有堆叠的系列。



在版本3之前,一切正常。
在版本3中,firefox和chrome中都有一些奇怪的错误行为:
示例: http://jsfiddle.net/jlbriggs/yj3FP/

 堆叠:'正常',

如果我禁用堆叠,一切看起来都如预期。但我需要堆叠。
所以,如果你注释掉'stacking:normal'这一行,你应该会看到图表,除了堆叠部分...



在以上链接的例子中,如果您隐藏除预测系列以外的所有区域系列,您将看到看起来应该如何的东西。请注意,与预测系列相邻的粗线条消失了 - 它不应该在第一位!该行是所有其他堆叠系列,它们不会沿着x轴延伸到预测系列的区域,并且会覆盖预测系列。

现在,隐藏了这些堆叠的区域系列,再次展示它们 - 注意线条扭曲和曲折的奇怪方式....我知道这是一个复杂的解释。这是难以解释的问题:)

所以问题是:
$ b $ 1)这里发生了什么

<2>如何让它停止? :)

github上的问题已列为已解决,但我仍然遇到与此图表完全相同的问题。



我已经在plotoptions中的系列级设置了stacking:normal,并且根据需要在系列级别上禁用它。



我已经从plot选项中删除了堆叠设置,而只是将其设置为按照系列级别的系列级别需要。



问题消失了。


I have a complex area chart, which uses some stacked and some unstacked series.

Prior to version 3, everything worked fine. With version 3, there are some odd buggy behaviors, in both firefox and chrome: Example here: http://jsfiddle.net/jlbriggs/yj3FP/

stacking:'normal',

If I disable stacking, everything looks as expected. But I need stacking. So, if you comment out the 'stacking:normal' line, you will see the chart as it should be, except for the stacking part...

In the example linked to above, if you hide all of the area series except for the 'predicted' series, you will see things looking how they should. Notice that the big thick line bordering the 'predicted' series is gone - it shouldn't be there in the first place! that line is all of the other stacked series, which do not extend along the x axis into the area of the 'predicted' series, wrapping up and over the 'predicted' series.

Now, having hidden those stacked area series, show them again - notice the very bizarre way the line twists and zig zags....

I realize this is a complex explanation. It is difficult problem to explain :)

So the question is:

1) What is going on here??

2) How do I make it stop?? :)

The issues on github are listed as solved, but I am still having the exact same issue with this chart.

解决方案

Ok, solution:

I had been setting the stacking:normal at the series level in the plotoptions, and disabling it on a series by series level as needed.

I have instead removed the stacking setting from the plot options, and instead only set it on a series by series level as needed.

Problem went away.

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

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