Chartjs-Chart.js unable to display data

0👍

Your data1, label3 are strings, you have to use an array for that. Try to push you data in the array.

0👍

There is a small mistake that you made, your data variable should be an array. Something like this.

var data1 = [10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];

Leave a comment