Skip to content
caliper ui pro docs

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.

Pro
Accounts by seats and annual revenue

Trend: Revenue rises by about 406.33 for each 1 of Seats (R² 0.86).

Accounts by seats and annual revenue
ItemSeatsRevenueOpen tickets
Halden412002
Ostra41248059
Northwind783179016
Sprout1156614323
Lumen1526919130
Kestrel965077
Forma462682214
Brightline833680921
Orchard1203920428
Tidewater157817345
Copperleaf141305212
Juniper512238519
Halden Labs885087826
Ostra Labs125562753
Northwind Labs1625407910
Sprout Labs191244717
Lumen Labs562478224
Kestrel Labs932952531
Forma Labs130661968
Brightline Labs1677510215
Orchard Labs241359622
Tidewater Labs613622929
Copperleaf Labs98439746
Juniper Labs1354412713
Halden Group1728897520
Ostra Group291337127
Northwind Group66204624
Sprout Group1035127311
Lumen Group1406252818
Kestrel Group1775809025
Forma Group34221962
Brightline Group71322899
Orchard Group1083479016
Tidewater Group1457377923
Copperleaf Group1827234330
Juniper Group39120157

When to use

  • Accounts by seats and revenue, endpoints by traffic and latency.
  • Finding outliers and clusters.

When not to use

  • One measure over time; use the line chart.
  • Thousands of points; aggregate into a heatmap matrix first.

Installation

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

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

API reference

trendLine

0 props

No props of its own; it accepts the native props of its root element.

ScatterChart

13 props
PropTypeDefault
label *string—
points *readonly ScatterDatum[]—
groupsreadonly ChartSeries[]—
xLabel *string—
yLabel *string—
sizeLabelstring—
formatX((value: number) => string)numberText
formatY((value: number) => string)numberText
trendbooleanfalse
heightnumber300
loadingboolean—
errorstring—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

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.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/scatter-chart.md

The index of every part is at /llms.txt.

More in Distribution charts