F
Filament12mo ago
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]; } Widget pages exist, but they can only show one chart at a time. - WbeStatsKpiChart protected function getFooterWidgets(): array { return [WbeStatsKpiChart::class]; } - WbeStatsCostChart 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]; } Thank you!
Solution:
Solved. ` protected function getFooterWidgets(): array { return [WbeStatsCostChart::class, WbeStatsKpiChart::class];...
Jump to solution
1 Reply
Solution
LucaCvg
LucaCvg12mo ago
Solved. protected function getFooterWidgets(): array { return [WbeStatsCostChart::class, WbeStatsKpiChart::class]; }
Want results from more Discord servers?
Add your server