1๐
Make an ajax request in the view file, then push the values in the chart.
And you can try this
{!! json_encode($electrical) !!}
Have a look at this tutorial
- Chartjs-Chart.js V2.7.2 How to make Horizontal scroll bar without loosing Y-Axis
- Chartjs-Chart section is empty
0๐
{!!$plumbing!!}g
I think that you can try removing this "g" in your data. At first look everything is correct.
Source:stackexchange.com