javascript - Shifting after dynamically adding a point creates a space in chart -


So I'm using high quality to plot every 1 second of real time data. After 40 points, being added to the chart, I start changing points. The problem is that I have more than one series in the chart and when this change begins, it creates a strange place in all the series except the first series.

< P> As you can not see blue on the same place in blue.

  setLiveDataPoint: function (data) {var graph = this; Var num = graph.yAxis.length; // Number of Y axis (field, quality) var yAxis = graph.yAxis; For (var i = 0; i & lt; num; i ++) {var xFieldId = "time"; // time for default var serie = graph.highchartObj.get (yAxis [i] .id); Var x = parseInt (data [xFieldId] [data.records - 1]); Var y = Data [yAxis [i] .id] [data.records - 1]; Var changes; If (graph.pointsOnGraph == 40) {shift = true; } And {shift = false; If (I == 0) {graph.pointsOnGraph + = 1; }} Serie.addPoint ({x: x, y: y}, true, variation); } Return graph;  

When I make a call, there is every data in the same JSN reaction, so I loop to plot the point in the chart for yAxis.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -