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];
- Chartjs-Php/laravel: Creating chartdata, return 0 if no data is being submitted to database
- Chartjs-Chartjs in Vue integrate parsed Json Data
Source:stackexchange.com