Pro
Scatter chart
Two measures per item, with an optional third as point size. Points grow in, hidden groups shrink away, and a trend line with its fit draws after them.
pnpm dlx shadcn@latest add @caliper/scatter-chartWhen to use
Use it for
- Accounts by seats and revenue, endpoints by traffic and latency.
- Finding outliers and clusters.
Skip it when
- One measure over time; use the line chart.
- Thousands of points; aggregate into a heatmap matrix first.
Installation
pnpm dlx shadcn@latest add @caliper/scatter-chart
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from trendLine and ScatterChart.
import { trendLine, ScatterChart } from "@/components/ui/scatter-chart"
The worked example comes with Pro
The 47-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
trendLine
component
No props of its own; it accepts the native props of its root element.
ScatterChart
component
Accessibility
It exposes group and status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.
No custom key handling; Tab and the native activation keys do the work.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.
Related
- Connected scatterPoints joined in time order on two axes.
- Heatmap matrixTwo categories against each other, coloured by value. The row and column follow the pointer or arrow keys, and choosing a step of the scale isolates its cells.
- Bubble timelineA scatter that moves through time: bubbles placed by two measures and sized by a third. Play, pause, scrub, or choose a name to trace its path. It never starts on its own.