[英]adding the new data point to the graph already saved
I have a question about plotting graphs on the web. 我有一个关于在网络上绘制图形的问题。 I want to graph large amount of history data on a graph.
我想在图表上绘制大量的历史数据。 But the problem is that I do not want it to start over plotting all the data from the beginning of time every time the we page gets opened.
但是问题是我不希望它每次从打开we页面开始就重新开始绘制所有数据。 in other words I want it to save the plot of history data and every time the web page gets open just add the new point to the graph for example assume I have this array
换句话说,我希望它保存历史数据的图,并且每次打开网页时,只需将新点添加到图形中即可,例如,假设我拥有此数组
History=[(0,1),(2,10),(3,100)]
and I have its graph too before and my new point: 我之前也有它的图表,还有我的新观点:
NewPoint=(4,1000)
how can I just add the (4,1000) to the graph without having to plott all the data again? 如何将(4,1000)添加到图形中而不必再次绘制所有数据? I am using Phplot now.
我现在正在使用Phplot。 Do you thing it is possible in phplot or API?
你觉得在phplot或API中有可能吗?
我不熟悉phplot,但是highcharts (鼓励熟悉javascript / jQuery / json)支持在某些图表上单击添加点,并且在其他图表上具有自动刷新功能,可以重新加载数据并重绘图形每“ x”秒。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.