© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Zetto

Dynamic Default Chart Filter

How do i set the default filter for chart widget if it is dynamic or based on something?


I tried setting
public static ?string $filter 
public static ?string $filter 

But it's not dynamic

I also tried changing the value inside getData()
$this->filter = $myFilter
$this->filter = $myFilter

But it sets it constantly even when i tried to change filter

Currently on my code i dynamicly create an array for the getFilter() so i want to know how can i also access it dynamically
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic Filter
FilamentFFilament / ❓┊help
16mo ago
Chart Filters
FilamentFFilament / ❓┊help
3y ago
Chart widget filter - spins forever
FilamentFFilament / ❓┊help
3y ago
Custom Filter Default
FilamentFFilament / ❓┊help
2y ago