Charts people can dig into.In one component.
WarpChart works in any form, page, widget or modal. It groups the query in the database, and a click on a bar shows what is behind it, level by level, down to the records.
Native Filament ChartWidget + Trend
$data = Trend::model(Order::class) ->between(now()->startOfYear(), now()) ->perMonth() ->sum('total');return [ 'datasets' => [[ 'data' => $data->map( fn ($v) => $v->aggregate, ), ]], 'labels' => $data->map(fn ($v) => $v->date),];
- ✕Grouping, labels and last year's data are code you write for every chart
- ✕A click on a bar does nothing: digging deeper means building another page
With Warp Chart +2 lines
WarpChart::make('sales') ->bar() ->query(Order::class) ->perMonth('ordered_at') ->sum('total', 'Sales') ->drillDown('category', 'status') ->compareToPreviousYear()
- ✓Click a month to see its customers, then the orders behind them
- ✓This year next to last year, in the same call
- ✓The same numbers on SQLite, MySQL, MariaDB and PostgreSQL