Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Highchart 将数据动态添加到散点图时,有没有办法防止已经渲染的数据点随机消失?我只希望超出当前 x 轴限制的数据点消失。
look at my code here 我的小提琴
look at my code here
您可以在 random() 函数中检查点是否存在于序列/数据中。
http://jsfiddle.net/zpDPd/1/
var series = chart.series;
然后你应该迭代每个系列和每个点并检查点是否是。