ui-kit0.0

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.

Gauge: Storage used 72.4 GB of 100 GB.
namevalueGoal
Storage used72.4 GB100 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.

Radial chart: Signups 86% of 100%, Activation 64% of 100%, Retention 41% of 100%.
goalprogressGoal
Signups86%100%
Activation64%100%
Retention41%100%

API

RadialChart

PropTypeDefaultDescription
dataRecord<string, unknown>[]—One record per ring.
indexstring—Key of the ring name.
valueKeystring—Key of the ring value.
maxnumber100Value that fills a ring.
variant'ring' | 'semicircle''ring'Full circles or a half-gauge.
thicknessnumber—Stroke width in px (default 16 for one ring, 12 for several).
trackbooleantrueDraw the empty track behind each ring.
colorsSeriesColor[]—Colour per ring.
centerLabel / centerValueReactNode—Override the centre text.
heightnumber240 · 160 for semicirclePlot height in px.
valueFormatValueFormat'number''percent' expects 0–100 values.
legend / tooltip / animatesee Donut—Legend shows when there are several rings.

Keyboard

KeyAction
TabFocuses the chart.
← / →Moves to the previous or next ring.
EscClears 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.