DEV Community

Discussion on: Use Laravel charts in Laravel.

alexander0312 profile image
alexander lim

hi,, i'm using larapexchart in laravel but i keep on getting a error .. saying that Call to a member function container() on array.. can you help me please...

Thread Thread
arielmejiadev profile image
Ariel Mejia Author

Hi there! thanks for using Larapex charts, here is a live sample with TailwindCSS:

Here the controller where I built the charts:

Here the view:

If you want to share the code I can give a look at the code, alternatively you can make a "dd()" to the chart variable before pass it to the view and check that its a LarapexChart object instance.