data
Interactive Line Chart
A calm line reading surface with snapped crosshair, direct values and keyboard point browsing.
- data
- chart
- line
- crosshair
- reading
Live preview
Focus the plot, then use ← → to move through the reading points. Pointer and touch follow the same rail.
Quick usage
import { InteractiveLineChart } from "@pinky-ui/systems";
<InteractiveLineChart data={points} label="Weekly usage" />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 interactive-line-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 labelled values with optional context. |
| className | string | — | Styles the outer interaction surface. |
Accessibility
- The focused plot exposes a labelled reading rail and Arrow/Home/End point navigation.
- The active value is announced beside the chart; no pointer hover is required.
Performance
- Uses one lightweight SVG and updates only the active index.
- No chart dependency or per-frame React tree is required.
Reduced motion
Motion resolves immediately while semantics, focus and state remain unchanged.
When to use
- Small, inspectable trends where the current point matters
When not to use
- Large analytical datasets that need zoom, multiple axes or aggregation
Skill
Purpose
A calm line reading surface with a snapped crosshair, direct values and keyboard point browsing — inspection without a heavy charting dependency.
Good for
- Small, inspectable trends where the current point matters
Avoid for
- Large analytical datasets that need zoom, multiple axes or aggregation
Usage
<InteractiveLineChart data={points} label="Weekly usage" />Accessibility
- The focused plot exposes a labelled reading rail and Arrow/Home/End point navigation.
- The active value is announced beside the chart; no pointer hover is required.
Performance
- Uses one lightweight SVG and updates only the active index.
- No chart dependency or per-frame React tree is required.
Related: interactive-sparkline, data-lens.