data
Range Brush Chart
An overview and focused chart share one selected window with draggable and keyboard-adjustable bounds.
- data
- chart
- range
- brush
- selection
Live preview
Drag the selected window or adjust either labelled handle. The focused chart keeps its reading position.
Quick usage
import { RangeBrushChart } from "@pinky-ui/systems";
<RangeBrushChart data={history} label="Usage history" />Presets
Default
Restrained production behaviour.
Default behaviour
Quiet
Reduced intensity for dense product screens.
disabled={true}
Install
Add @pinky-ui/systems as a dependency, or use the CLI to copy this component's source directly into your project — no dependency to manage, fully editable.
npm install @pinky-ui/systemspnpm add @pinky-ui/systemsyarn add @pinky-ui/systemsnpx pinky-ui add range-brush-chartPrefer to run the whole repository locally instead?
git clone https://github.com/florash/Pinky-UI.git
cd Pinky-UI
npm install
npm run devProps
| Prop | Type | Default | Description |
|---|---|---|---|
| data | VizPoint[] | — | Ordered values for the overview and focused reading. |
| className | string | — | Styles the outer interaction surface. |
Accessibility
- Start and end handles are real labelled range inputs with a visible Reset range action.
- The selected window and current value remain readable when motion is reduced.
Performance
- The overview and focus use deterministic SVG geometry; no external chart engine is required.
- Pointer updates stay local to the brush and focused chart.
Reduced motion
Motion resolves immediately while semantics, focus and state remain unchanged.
When to use
- Short histories where overview context and local inspection belong together
When not to use
- Unbounded time-series analysis or dense financial tooling
Skill
Purpose
An overview and a focused chart share one selected window with draggable and keyboard-adjustable bounds, so zooming stays connected to the whole history.
Good for
- Short histories where overview context and local inspection belong together
Avoid for
- Unbounded time-series analysis or dense financial tooling
Usage
<RangeBrushChart data={history} label="Usage history" />Accessibility
- Start and end handles are real labelled range inputs with a visible Reset range action.
- The selected window and current value remain readable when motion is reduced.
Performance
- The overview and focus use deterministic SVG geometry; no external chart engine is required.
- Pointer updates stay local to the brush and focused chart.
Related: timeline-scrubber, interactive-line-chart.