Skip to content
caliper ui pro docs

Skyline chart

A 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.

Pro
Activity by weekday and time of day
00–03h03–06h06–09h09–12h12–15h15–18h18–21h21–00h
Monday13377915420020714471
Tuesday15428817222323016179
Wednesday17438716821622415779
Thursday20369917624423917776
Friday20318013819018614062
Saturday1814263146393418
Sunday816142728332019

Thursday · 12–15h · 244 events · peak

When to use

  • Activity by weekday and hour, load by region and time, anything with two category axes and one number.
  • Showing a pattern first and the exact figure second.

When not to use

  • Comparing a few values; a bar chart reads exactly.
  • Dense grids over about 12 by 12; the columns hide each other.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/skyline-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.

API reference

SkylineChart

16 props
PropTypeDefaultDescription
label *string—What the chart shows, for example "Activity by weekday and time".
rows *readonly string[]—Short row labels drawn on the grid.
columns *readonly string[]—Short column labels drawn on the grid.
values *readonly (readonly number[])[]—One array of numbers per row, one number per column.
rowNamesreadonly string[]—Full names for the readout and the table. Defaults to the short labels.
columnNamesreadonly string[]—
unitstring"events"
format((value: number) => string)(n: number) => n.toLocaleString("en-US")
viewnumber—0 (heatmap, seen from above) to 1 (skyline). Controlled when set.
defaultViewnumber1
onViewChange((view: number) => void)—
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Keyboard

→
Moves to the next item or value.
←
Moves to the previous item or value.
↓
Moves to the next item or value.
↑
Moves to the previous item or value.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It exposes group semantics, with aria-roledescription, aria-label, aria-describedby, aria-hidden, aria-live and aria-valuetext 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/skyline-chart.md

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

More in Surfaces