Charts
Radial & gauge
Progress toward a goal.
Usage
RadialChart shows progress toward a goal. With one row it is a gauge with the value in the centre; with several rows the rings nest, first row outermost. The empty track stays visible so the remaining distance is obvious.
| name | value | Goal |
|---|---|---|
| Storage used | 72.4 GB | 100 GB |
When to use
- One number against a known maximum: quota, completion, score.
- Up to four related goals measured on the same scale.
Not for: values without a natural maximum or precise comparisons (use bars).
Several rings
Pass more than one row for concentric rings. Hover a ring to see its value in the centre. Use variant="semicircle" for a half-gauge.
| goal | progress | Goal |
|---|---|---|
| Signups | 86% | 100% |
| Activation | 64% | 100% |
| Retention | 41% | 100% |
API
RadialChart
| Prop | Type | Default | Description |
|---|---|---|---|
| data | Record<string, unknown>[] | — | One record per ring. |
| index | string | — | Key of the ring name. |
| valueKey | string | — | Key of the ring value. |
| max | number | 100 | Value that fills a ring. |
| variant | 'ring' | 'semicircle' | 'ring' | Full circles or a half-gauge. |
| thickness | number | — | Stroke width in px (default 16 for one ring, 12 for several). |
| track | boolean | true | Draw the empty track behind each ring. |
| colors | SeriesColor[] | — | Colour per ring. |
| centerLabel / centerValue | ReactNode | — | Override the centre text. |
| height | number | 240 · 160 for semicircle | Plot height in px. |
| valueFormat | ValueFormat | 'number' | 'percent' expects 0–100 values. |
| legend / tooltip / animate | see Donut | — | Legend shows when there are several rings. |
Keyboard
| Key | Action |
|---|---|
| Tab | Focuses the chart. |
| ← / → | Moves to the previous or next ring. |
| Esc | Clears the selection. |
Accessibility
- role="img" labelled with each value and its maximum; a hidden table repeats them.
- The centre text is also in the label, so nothing depends on seeing the ring.
Motion
- Rings sweep from zero to their value on mount (700ms, ease-out).
- Reduced motion: drawn at their value straight away.