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.
| 00–03h | 03–06h | 06–09h | 09–12h | 12–15h | 15–18h | 18–21h | 21–00h | |
|---|---|---|---|---|---|---|---|---|
| Monday | 13 | 37 | 79 | 154 | 200 | 207 | 144 | 71 |
| Tuesday | 15 | 42 | 88 | 172 | 223 | 230 | 161 | 79 |
| Wednesday | 17 | 43 | 87 | 168 | 216 | 224 | 157 | 79 |
| Thursday | 20 | 36 | 99 | 176 | 244 | 239 | 177 | 76 |
| Friday | 20 | 31 | 80 | 138 | 190 | 186 | 140 | 62 |
| Saturday | 18 | 14 | 26 | 31 | 46 | 39 | 34 | 18 |
| Sunday | 8 | 16 | 14 | 27 | 28 | 33 | 20 | 19 |
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
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
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.mdThe index of every part is at /llms.txt.