Custom JS for Chart Widgets to build custom tooltip
I would like to find out any best practices for adding custom JS to the chart widgets
In my case I have some data from the model which I would like to show in the tooltip, I am wondering how to integrate the Alpine JS or livewire directives to build the custom toolitp
Thank you in advance
3 Replies
Check the last example here: https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options In essence you can use the RawJs object to make use of JavaScript functions
Thanks @ConnorHowell that example I saw, however I was looking to be able to do more - like have a custom function that loads livewire content for the tooltip for example