0👍
You’ve done everything good, but there is one mistake. Check https://www.chartjs.org/docs/latest/general/colors.html
You can’t declare color on way that you just set color to 0
. You can write black
or use 'rgba(0,0,0)'
.
- Chartjs-Laravel – production.ERROR: Undefined variable: department_chart_data in Chartjs barchart
- Chartjs-Chart.js time series showing empty plot
Source:stackexchange.com