Chartjs-Laravel how to pass data into Chart.js?

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

https://www.codeleaks.io/ajax-get-post-request-in-laravel/

0๐Ÿ‘

{!!$plumbing!!}g

I think that you can try removing this "g" in your data. At first look everything is correct.

Leave a comment