Replies: 1 comment
-
|
In your list page, where the table is displayed, you need to track the filter changes for the table, and then dispatch an event & that event you need to put a lister in the chart widget file Here is the sample code for List Page: ` public function mount(): void And now this event you need to listen in the chart widget and update the chart options ` protected $listeners = ['redrawRawDataTableFiltersChart' => 'updateFilter']; ` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am following this tutorial (https://laraveldaily.com/post/filament-stats-widgets-above-table-auto-update-with-filters) to make put the chart above table. Right now, the chart is showing data with filter. But the problem is that the chart is not instantly update when I change the filter on the table. The chart is only updated by it's '$pollingInterval'. This bring the problem that you don't see the chart is directly updated once the filter is change. How can I send trigger to update the chart once the filter on the table is modified?
Beta Was this translation helpful? Give feedback.
All reactions