Chartjs-Issue upgrading from chart.js 1 to 3.5

0👍

found the culprit – prototype-1.7.js

removed it and all works perfectly

0👍

In your data you only have 1 item. This will be very hard to see on the chart because there will be no line to draw between items.

Adding to that, the data in your datasets should be formatted like this.

It looks like you are trying to combine Primitive and Object styles when you should be using either one. Because you are already giving labels, you only need to give the data like this: [10, 20, 30]

you can also give the data like you currently are giving. You just don’t need the labels.

Leave a comment