© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
Mambi

Change chart type according to the selected filter

in my chart widget i'm using this code to change the chart type according to the selected filter but it doesnt work,
any idea ?
 protected function getType(): string
    {
        return $this->filter == 'date' ? 'line' : 'bar';
    }
 protected function getType(): string
    {
        return $this->filter == 'date' ? 'line' : 'bar';
    }
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

How to get selected filters in filtersApplyAction?
FilamentFFilament / ❓┊help
2y ago
Reset Filter according to getEloquentQuery
FilamentFFilament / ❓┊help
3y ago
How list according to the tab selected in the table
FilamentFFilament / ❓┊help
2y ago
Is it possible to change the chart type in the widgets dynamically?
FilamentFFilament / ❓┊help
7mo ago