Radial bar chart
Four to seven categories as concentric arcs that fill toward the largest one. Sorting moves each arc to its new ring.
| Category | Value |
|---|---|
| 412 | |
| Chat | 688 |
| Phone | 96 |
| Community | 241 |
| API | 158 |
When to use
- Usage by channel, share of tickets by team.
- A compact chart beside a list of values.
When not to use
- Precise comparisons; arcs on outer rings look longer, so the bar chart is fairer.
- More than seven categories.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/radial-bar-chart
Adds its 6 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
RadialBarChart
9 props
PropTypeDefault
label *string—
parts *readonly ChartPart[]—
maxnumber—
unitstring""
formatValue((value: number) => string)numberText
sortablebooleantrue
loadingboolean—
errorstring—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-label, aria-busy and aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/radial-bar-chart.mdThe index of every part is at /llms.txt.