Warp Chart demo — charts for Filament you can dig into: drill-down, last year, budget lines, linked charts. Click anything; the data is reset every hour. warpui.com About Warp Chart Docs Ask a question Support
Skip to content

Dashboard

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

Welcome to the Warp Chart demo

Harbor Supply Co. sells office supplies to 14 customers. You are Morgan Lee, who looks after the numbers. The orders run up to today, and “Sales” adds up only the orders that were not cancelled. Try these in any order.

  1. 1
    Click a month and keep digging

    Click a month to see its customers, then a customer to see the categories. The path above the chart leads back.

    Open the drill-down example →
  2. 2
    See the budget on the chart

    Every month has a short line for its budget. Point at a month: the tooltip says how much of the budget was reached.

    Open the budget example →
  3. 3
    Change one date, watch every chart follow

    Move “From” to a later date: the numbers, the months and the customers change together.

    Open the filters example →
  4. 4
    Let one chart filter the others

    Click “Paper” in the donut: the other charts show only Paper. Click it again to go back.

    Open the linked charts →
  5. 5
    Type a quote, watch the margin

    Change a quantity or a price in the form and the margin chart beside it is drawn again.

    Open the form example →
  6. 6
    Open a chart from a table row

    Click “Sales” on a customer: a chart of that customer opens in a modal. Search the table and click “Customers by region”: the chart counts only the rows the table shows.

    Open the customers →

Sales of the last twelve months

A chart widget on the dashboard. Each month stands next to the same month a year earlier. The last month is paler because it is not over yet; it is compared with the same days a year earlier. Click a month to see its categories.