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.