[Chartjs]-Streaming Real-time data with react and chartjs-plugin-streaming paused

1👍

The reason chart.js doesn’t throw an error anymore with array is because chart.js ignores those options.

As stated in the documentation here you will need to import and register everything you use. By default react chartjs import and registers everything from chart.js itself but it can’t auto register any plugin things since it doesn’t know you are using them.

So to solve the issue you will also need to register the scale like so:
import { StreamingPlugin, RealtimeScale } from 'chartjs-plugin-streaming';. After that you can register it like so: Chart.register(StreamingPlugin, RealtimeScale);

Leave a comment