Polar area chart
Equal wedges whose length shows the value, for categories with an order around a circle such as months, hours or directions. Wedges grow out from the centre.
| Category | Value |
|---|---|
| Jan | 320 |
| Feb | 290 |
| Mar | 410 |
| Apr | 460 |
| May | 520 |
| Jun | 610 |
| Jul | 580 |
| Aug | 540 |
| Sep | 700 |
| Oct | 760 |
| Nov | 640 |
| Dec | 590 |
When to use
- Signups by month, incidents by hour, wind by direction.
- Showing a cycle and its peak.
When not to use
- Unordered categories; use the bar chart.
- Parts of a whole; use the donut chart.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/polar-area-chart
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.
API reference
PolarAreaChart
7 props
PropTypeDefault
label *string—
parts *readonly ChartPart[]—
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—
Keyboard
- →
- Moves to the next item or value.
- ↓
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↑
- Moves to the previous item or value.
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes group and status semantics, with aria-label and aria-busy 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/polar-area-chart.mdThe index of every part is at /llms.txt.