[英]Updating series data in Highcharts
I have a graph with dynamic series in it which has to be updated after every 5 minutes through data from an AJAX
call.我有一个包含动态系列的图表,它必须在每 5 分钟后通过来自
AJAX
调用的数据进行更新。
Now i have figured out the AJAX
call and i am using Highcharts API's to set data in the graphs.现在我已经弄清楚了
AJAX
调用,并且我正在使用 Highcharts API 来设置图表中的数据。 But it isn't working properly.但它不能正常工作。 The data that is coming from
AJAX
call is correct.来自
AJAX
调用的数据是正确的。 But when i set the data in the highchart series, there are certain points missing in the data set on the graph.但是当我在 highchart 系列中设置数据时,图表上的数据集中缺少某些点。 Plus, its alignment with the y-axis is also not proper.
另外,它与 y 轴的对齐也不正确。
If anyone could help me out in this, it would be a great help.如果有人可以帮助我解决这个问题,那将是一个很大的帮助。
First, you need run url
and see what it returns.首先,您需要运行
url
并查看它返回的内容。
Then second, you view source when run page,其次,在运行页面时查看源代码,
xAxis: {
categories: [{{{histKeys}}}]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.