Highstocks,线路缺失,但数据在那里

编程入门 行业动态 更新时间:2024-10-27 11:21:39
本文介绍了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

PS. Website can be found here Skami

推荐答案

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

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,线路缺失,但数据在那里

本文发布于:2023-05-30 09:21:31,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在那里   缺失   线路   数据   Highstocks

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!