© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
LucaCvg

Showing Multiple Charts (ChartWidget) in ViewPage

Hi everyone. I would like to be able to show two graphs (ChartWidget) at the bottom of each detail page.

I created the Widgets and I'm using the getFooterWidgets() function in View to show the graph and it works, but with one graph at a time and not with both together.

However, I don't know what I need to write to be able to show two graphs and not just one.


    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
    }
    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
    }



Widget pages exist, but they can only show one chart at a time.
- WbeStatsKpiChart
    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
    }
    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
    }


- WbeStatsCostChart
    protected function getFooterWidgets(): array
    {
            return [WbeStatsCostChart::class];
    }
    protected function getFooterWidgets(): array
    {
            return [WbeStatsCostChart::class];
    }


It's wrong but the result I would like to obtain is like this:
    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
            return [WbeStatsCostChart::class];
    }
    protected function getFooterWidgets(): array
    {
            return [WbeStatsKpiChart::class];
            return [WbeStatsCostChart::class];
    }


Thank you!
Solution
Solved.

    protected function getFooterWidgets(): array
    {
            return [WbeStatsCostChart::class, WbeStatsKpiChart::class];
    }
    protected function getFooterWidgets(): array
    {
            return [WbeStatsCostChart::class, WbeStatsKpiChart::class];
    }
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

ViewPage in index
FilamentFFilament / ❓┊help
3y ago
Export Button in ChartWidget
FilamentFFilament / ❓┊help
10mo ago
Multiple Charts in the Stats overview widget
FilamentFFilament / ❓┊help
3y ago
in Apex Charts not showing filter in pie chart
FilamentFFilament / ❓┊help
3y ago