caliper uidocs

Connected scatter

Pro

Points joined in time order on two axes.

Installs components/ui/connected-scatter.tsxDepends on d3-shapeMotion none in component source
pnpm dlx shadcn@latest add @caliper/connected-scatter
Time spent on the app against satisfaction
523465457857Minutes a daySatisfaction20122025

Time spent on the app against satisfaction
PeriodMinutes a daySatisfaction
20123452
201336.7547361849292557.59568091058323
201439.2512361665773761.6428923354891
201541.29448897052892463.178600471267856
201642.800454339016562.18930500872769
201743.816638717028759.616143245605436
201844.51046401773171456.99907076880359
201945.12827689908283455.894644653893266
202045.9350345103225657.28753007735803
202147.1494337411367861.21822425000538
202248.8903665957410966.76774548416711
202351.1478112837451472.40507605663657
202453.7852859039623676.56599983742316
202556.5732639737931978.24449136501832

When to use #

Use it for

  • Showing how two measures move together.

Skip it when

  • Readers are unfamiliar with the form.

Installation #

terminal
pnpm dlx shadcn@latest add @caliper/connected-scatter

Adds its 3 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.

example.tsx
import { ConnectedScatter } from "@/components/ui/connected-scatter"

The worked example comes with Pro

The 14-line example behind the preview opens here with a Pro or Team licence.

Checking your licence…

API reference #

ConnectedScatter

component
PropTypeDefault
label *string—
points *readonly ScatterPoint[]—
xLabel *string—
yLabel *string—
fx((n: number) => string)(n) => String(n)
fy((n: number) => string)(n) => String(n)
classNamestring—

Accessibility #

It exposes group and status semantics, with aria-label kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
→Moves to the next item or value.
↓Moves to the next item or value.
←Moves to the previous item or value.
↑Moves to the previous item or value.

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.