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

Choose a period by dragging

->rangeSelector() puts a small chart of all the weeks under a weekly chart. Drag across it to choose which weeks the chart above shows. The small chart covers the orders of this year and the two years before.

Drag to choose the weeks

->rangeSelector(visible: 26) starts with the last 26 weeks. Only the chart above changes; nothing is fetched from the server while you drag.

Note: Try it

Drag across the small chart from left to right: the chart above shows those weeks, and the period is written above the small chart. Drag inside the frame to move it, drag its left or right edge to make it longer or shorter. Double-click the small chart to go back to the last 26 weeks.

The chosen weeks filter other charts

With a name, ->rangeSelector('period') also passes the chosen weeks on. The donut and the number below are ->followRange('period'): they are fetched again for those weeks. Before you drag, all three show every week.

Note: Try it

Drag across a few weeks in the small chart. The donut and the total below change to those weeks and show the period as a badge. Click the × on a badge to go back to every week.

Sales by category in the chosen weeks

Sales in the chosen weeks