Home › Forums › Chart Support › Dyanmic Chart: grid not shifting › Reply To: Dyanmic Chart: grid not shifting
@nidhipathak002,
In the above JSFiddle you were adding new dataPoints just after performing dps.shift() operation which was making the gridlines denser on each successive call. Hence just by removing the line dps.push({y: yVal, x : xVal}); from your code will work fine as shown in this updated JSFiddle.
dps.shift()
dps.push({y: yVal, x : xVal});
____ Shashi Ranjan Team CanvasJS