A demonstration of creating dashboard widgets that mimic Google Analytics behavior.
The main logic lives in two charts that we have created - VisitorsPerCountry
and VisitorsChart
:
flowframe/laravel-trend
that's documented here
All of this includes a clever usage of Filament charts/widgets and custom Livewire components. So here's how that looks in code:
Our first chart - VisitorsChart, which displays historical data: