Open adrianblakey opened 6 months ago
I have the same issue with version 2.0.0. The error is not displayed with:
options: {
plugins: {
tooltip: {
enabled: false,
},
}
}
But there is no tooltip...
same here tooltip disabled no errors but with errors
Happened the same to me. Went debugging and there is a bug / change with recent versions of ChartJS,
And change me._chart.getDatasetMeta
, to me.chart.getDatasetMeta
, recompile, and deploy.
Any ideas what causes this excp?
As you might see, the script opens a websocket, data is sent to the browser about every 10ms as a csv tuple.
Browser console repeatedly says:
chartjs-plugin-streaming.js:250 Uncaught TypeError: Cannot read properties of undefined (reading 'getDatasetMeta') at Va.update$1 [as update] (chartjs-plugin-streaming.js:250:28) at Va.handleEvent (index.umd.ts:50:18) at Object.afterEvent (index.umd.ts:50:18) at d (color.esm.js:97:17) at sn._notify (index.umd.ts:50:18) at sn.notify (index.umd.ts:50:18) at An.notifyPlugins (index.umd.ts:50:18) at An._eventHandler (index.umd.ts:50:18) at An.update (index.umd.ts:50:18) at An.update (chartjs-plugin-streaming.js:795:35)
index.html
index.js