Add ChartJS charts to custom page (not widget)
I want to add charts to my custom page, so I'm free to tweak layout.
Since ChartJS seems fine, and it's already in Filament, I tried to use a similar approach to what I found in
/vendor/filament/widget/resources/views/chart-widget.blade.php
.
I don't see charts rendered. There are no console errors. I do see chart.js
being loading in network tab.
In browser console, both chart
and Chart
are undefined. (If I try this on a Filament Chart Widget, Chart
class is known.)
Should I try to fix this and am I missing some steps Filament does internally? Or should I approach this in a completely different way?0 Replies