Highstocks,线路缺失,但数据在那里 [英] Highstocks, line missing but data is there

查看:136
本文介绍了Highstocks,线路缺失,但数据在那里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩Highstocks一段时间,出于某种原因,我的一条线在放大时消失了,但一旦缩小后仍然可见。它仍然显示一次悬停在其上的点,包括属于它的数据。

I've been playing around with Highstocks for a while now and for some reason one of my lines has disappeared when zooming in, yet it is still visible once zoomed out. It still shows the dot once hovering over it including the data that belongs to it.

不用说我对于出错的事情一无所知,所以任何建议都会很棒。

Needless to say I'm pretty clueless about what went wrong, so any suggestions would be great.

放大:

缩小(很难看到,但红线在那里)

Zoomed out (hard to see but the red line is there)

PS。网站可以在这里找到 Skami.net

PS. Website can be found here Skami.net

推荐答案

您的系列包含相同数据的两倍值,例如:

Your series contains doubled values for the same data, for example:

    [1368450000000, null], 
    [1368450000000, 117.200050354004], 
    [1368451800000, null],
    [1368451800000, 117.599990844727],
    [1368453600000, null],
    [1368453600000, 117.710151672363]

这是Highcharts不允许的。删除额外的点,并会正常工作。

Which is not allowed in Highcharts. Remove extra point and will be working fine.

这篇关于Highstocks,线路缺失,但数据在那里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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