I have an issue with spline chart update with every second. Chart redraw every time so it is not showing constant wave.
Here is image how it looks
I have tried like this
this.timeinterval = setInterval(() => {
const x = (new Date()).getTime() + 7200000; // current time
if (this.voltage) {
this.chart['series'][0].addPoint([x, this.voltage], true, true);
}
}, 250);
How can i fix it to go smoothly.