Skip to content

Rednering Issue #8589

@WOLFIEEEE

Description

@WOLFIEEEE
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions