-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
socket.on('b', function (b) {
console.log(dataSerial);
if(counter1<100)
{
chart2.data.labels.push(counter1);
}
chart2.data.datasets.forEach(dataset => {
dataset.data.push(`${b}`);
counter1++;
if(counter1>100)
{
dataset.data.splice(0, 1);
}
});
chart2.update();
});
Code using to update chart.js I am having 150 data per second but the chart is showing points like these
You can see problem in the video below
bandicam.2021-03-08.16-30-25-464.mp4
Reactions are currently unavailable