caliper uidocs

Parallel coordinates

Pro

Many rows across several measures, one line each. Drag along an axis to keep a range; ranges combine. Keyboard: arrows move a range, Shift resizes it, Delete clears it.

Installs components/ui/parallel-coordinates.tsxDepends on d3-shapeMotion none in component source
pnpm dlx shadcn@latest add @caliper/parallel-coordinates
Instance types by size, price and test latency
vCPU200Memory150 GB0 GBPrice / mo$800$0p95100 ms20 ms

Instance types by size, price and test latency
RowvCPUMemoryPrice / mop95
c6.large246240
m7.large288769
r7.large21610698
t4.large244167
c6.xlarge4813290
m7.xlarge41614559
r7.xlarge43218688
t4.xlarge487957
c6.2xlarge81626480
m7.2xlarge83229349
r7.2xlarge86437878
t4.2xlarge81612747
c6.4xlarge163250070
m7.4xlarge166456139
r7.4xlarge1612875468
t4.4xlarge163225537
c6.large247484
m7.large287953
r7.large2169882
t4.large243351
c6.xlarge4812474
m7.xlarge41615743
r7.xlarge43219872
t4.xlarge487141
c6.2xlarge81625664
m7.2xlarge83228533
r7.2xlarge86437062
t4.2xlarge81613931

When to use #

Use it for

  • Choosing machines, plans or candidates by several measures at once.
  • Finding the rows that are good on every measure.

Skip it when

  • One or two measures; use the scatter chart.
  • Hundreds of rows on a phone.

Installation #

terminal
pnpm dlx shadcn@latest add @caliper/parallel-coordinates

Adds its 5 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 brushMatch and ParallelCoordinates.

example.tsx
import { brushMatch, ParallelCoordinates } from "@/components/ui/parallel-coordinates"

The worked example comes with Pro

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

Checking your licence…

API reference #

brushMatch

component

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

ParallelCoordinates

component
PropTypeDefault
label *string—
dimensions *readonly ParallelDimension[]—
rows *readonly ParallelRow[]—
groupsreadonly ChartSeries[]—
heightnumber300
loadingboolean—
errorstring—
classNamestring—

Accessibility #

It exposes slider and status semantics, with aria-label, aria-busy, aria-hidden, aria-valuemin, aria-valuemax and aria-valuenow kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
↑Moves to the previous item or value.
↓Moves to the next item or value.
DeleteRemoves the next character or the selected item.
BackspaceRemoves the previous character or item.
EscapeCloses or cancels, then returns focus to where it came from.

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.