Click a category or a region
The donut and the bars beside it can be clicked: the donut selects a category, the bars select a region. The two charts below only follow.
Note: Try it
Click the “Paper” slice: the other slices fade, the middle of the donut shows the amount of Paper, and every chart gets a “Paper” badge and shows only Paper. Click a region as well to combine the two. Click the × on a badge, or the same slice again, to remove the filter.
Sales by category
Sales by region
Sales per month
Top customers
Let a list or any other component follow
Every selection is also sent as the Livewire event warp-chart-selected with the name, the key and the label. This page listens with #[On('warp-chart-selected')] and filters the list of orders under the chart; a table could set its filter the same way. The chart counts the orders of the last 30 days by status.
Note: Try it
Click a bar. The line under the chart shows what the event carried, and the list shows only the latest orders with that status. Click the same bar again: the selection is cleared and the list shows every status again.
- SO-5092 · Prairie Print Works · Quote · $684.60
- SO-5093 · Magnolia Hotels · Confirmed · $83.70
- SO-5091 · Sunset Dental · Confirmed · $823.20
- SO-5089 · Northwind Traders · Quote · $297.00
- SO-5084 · Redwood Architects · Quote · $1,891.40