Then how is it automatically taking the value of x without pushing it for the first datalength values?
https://jsfiddle.net/nidhipathak/db7vmh5t/2/ This is the updated fiddle link. I am not pushing any value to x in push() function.
https://ibb.co/D7g7jYz
Hi Shashi, I checked the code and ran it in our environment. The thing is that if we remove the push function as per your instruction, the data after the specified length gets updated at the same x value and the x-axis stops shifting.
Please check the screenshot attached.
Hi, I have recreated the problem here in jsfiddle. https://jsfiddle.net/nidhipathak/40otzqxs/14/ The grids automatically get dense. Even when I have set the data length to 10 it still gets more than 10 data points at a time in the canvas.