Pro
Surface chart
One value over two variables, drawn as a surface you can turn. It is orthographic, with no perspective, so a tall point is tall from every side. Cells over the threshold turn ember, and the top view is the same data as a heatmap.
pnpm dlx shadcn@latest add @caliper/surface-chartWhen to use
Use it for
- Response surfaces: latency by load and cache hit rate, yield by temperature and time.
- Finding where a value falls off a cliff.
Skip it when
- One variable, or two categories; use a line or a heatmap.
- Exact comparison; the top view and the table are for that.
Decisions
Why it is built this way, so you know what to keep when you change your copy.
Behaviour
- A probe you can read
- Click or use the arrows to stand the probe on a cell; its value is written out in a live region, not only drawn.
- Paused when idle
- It paints only while it is turning or when something changes, and repaints when the theme does.
Styling
- No perspective
- Heights compare honestly. Perspective would make the near edge look taller than the far one.
Installation
pnpm dlx shadcn@latest add @caliper/surface-chart
Adds its 8 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.
import { SurfaceChart } from "@/components/ui/surface-chart"
The worked example comes with Pro
The 41-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
SurfaceChart
component
Accessibility
It exposes group semantics, with aria-label, aria-describedby and aria-live 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
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.
Related
- 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.
- Skyline chartA day-by-time grid whose cells rise into columns. Seen from straight above it is an exact heatmap, and colour repeats every height so nothing is lost when it is flat. Tilt it up to see the shape of the week. The busiest cell is the one ember column.
- Scatter chartTwo 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.