We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177aa1e commit 26b4d9dCopy full SHA for 26b4d9d
src/index.js
@@ -207,7 +207,8 @@ class ChartComponent extends React.Component {
207
const current =
208
currentDatasetsIndexed[this.props.datasetKeyProvider(next)];
209
210
- if (current && current.type === next.type) {
+ if (current && current.type === next.type && next.data) {
211
+ // Be robust to no data. Relevant for other update mechanisms as in chartjs-plugin-streaming.
212
// The data array must be edited in place. As chart.js adds listeners to it.
213
current.data.splice(next.data.length);
214
next.data.forEach((point, pid) => {
0 commit comments