Thank you for your answer Mr.Vishwas, however it’s not what I mean.
1. After xVal reach the maximum datalength, it will go back to xVal = 0, remove old signal then plot again.
<iframe src=”https://www.motionelements.com/embed/c/1673394″ allowfullscreen style=”width:480;height:379;border:none;”></iframe>
2. Remove setInterval() seems like not make sense at all, I tried with the example code but it’s not working