F
Filamentβ€’15mo ago
Azorky

How can I install Chartjs plugins?

I want to display values on top of my pie chart, but the standard Chartjs that Filament uses does not support this. However, they made a plugin: https://chartjs-plugin-datalabels.netlify.app/samples/charts/doughnut.html How can I add this Chartjs plugin to Filament so that I can use it in my chartjs config?
Doughnut | chartjs-plugin-datalabels
Display labels on data for any type of charts
Solution:
You will likely need to make a PR. But you could also use #apex-charts πŸ™‚
Jump to solution
3 Replies
Solution
toeknee
toekneeβ€’15mo ago
You will likely need to make a PR. But you could also use #apex-charts πŸ™‚
Azorky
AzorkyOPβ€’15mo ago
I got the functionality I need with apex charts, thanks
joseayram
joseayramβ€’2mo ago
You can read how register chartjs plugins in the official filament doc https://filamentphp.com/docs/3.x/widgets/charts#using-custom-chartjs-plugins

Did you find this page helpful?