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

Drill-down

Click a bar to see what is behind it. A Back button and a path lead back up. The chart asks the server only for the level you open. A line above each chart says that it can be clicked. The month or day that is not over yet is drawn paler (bars) or with a dotted end (lines).

Month → customer → category → orders

->drillDown() lists how each click breaks the number down: first by customer, then by category. ->drillToRecords() ends with the orders themselves.

Note: Try it

Click a month. The chart now shows that month by customer, and a path with the month appears above it. Click a customer to see their categories, then a category to see the orders behind it. Click a name in the path, or Back, to go up again.

Straight to the records

->drillToRecords() without ->drillDown(): the first click already lists the records. You choose the columns; the first one links to the record.

Note: Try it

Click a category: the orders of the last 30 days in that category are listed, newest first, with their number above the list. Click an order number to open the order.

From a month to its days

A level can be a date too: ->drillDown(Dimension::date('ordered_at')->perDay()).

Note: Try it

Click a month: the chart shows the orders of every day of that month.

Drill-down through your own data

With ->data() you build each level yourself: $request->depth() says how deep the viewer is and $request->drillKey(0) what they clicked. ->drillable() makes a level clickable.

Note: Try it

Click a region to see how many people work in each of its stores. This example has nothing to do with the orders: the numbers are an array in the code of this page.