Skip to content
WunderUI
All effectsCharts

Range Brush

Drag the handles of a range selector to zoom into part of the chart.

Pure CSSChartsPro

Meant for

Composed ChartLine Chart

Usage

On a Card

Drag across the chart to pick a range, drag inside the window to move it, or take an edge to resize it; the edges are sliders for the keyboard too. While the pointer holds it the window follows 1:1; a key press eases it over 150 ms. The window is cut with clip-path and the edges move with transform, so nothing re-lays out — the brush is two numbers, --wm-start and --wm-end. Until you reach for it, the preview slides and resizes the window on its own.

Pick a range
Orders, last 16 weeks

The class is wm wm-range-brush — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.