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.
-
This reply was modified 5 years, 10 months ago by nidhipathak002. Reason: Not sure if the screenshot link was updated