© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
KingNii

How to use getFilters in filament charts

Can anyone please direct me on how to implement getFilters to work?
$activeFilter = $this->filter;
protected function getFilters(): ?array
    {
        return [
            'today' => 'Today',
            'week' => 'Last week',
            'month' => 'Last month',
            'year' => 'This year',
        ];
    }
$activeFilter = $this->filter;
protected function getFilters(): ?array
    {
        return [
            'today' => 'Today',
            'week' => 'Last week',
            'month' => 'Last month',
            'year' => 'This year',
        ];
    }
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

Filament Charts
FilamentFFilament / ❓┊help
2y ago
How to use Alpine in Filament?
FilamentFFilament / ❓┊help
13mo ago
how to use swiperjs in filament
FilamentFFilament / ❓┊help
17mo ago
How to use an api in filament
FilamentFFilament / ❓┊help
3y ago