score:2

Accepted answer

The problem is, that you're not updating the labels. You define 10 items in your labels array. This works for 10 data entries.

If you push a new entry to your data array, you also need to add a new label. Otherwise chart.js will throw this error.


Related Query