Chartsv0.0.2
MobileA2UI

GaugeChart

A 270° arc dial for a single score, on the chart engine — the arc animates from zero on mount and can carry a gradient. For a static score that needs no engine, the core package's SVG Gauge is lighter.

Basic

<GaugeChart  value={72}  display="72%"  caption="Completed"  ariaLabel="Sprint completion: 72 percent"/>

Gradient arc

Pass color as two or more stops for a gradient swept along the arc.

<GaugeChart  value={86}  caption="Health score"  color={['#2563eb', '#5fcc57']}  ariaLabel="System health score: 86 out of 100"/>

Props

PropTypeDefaultNotes
valuenumber—Current value within [min, max].
min / maxnumber0 / 100The value range the arc spans.
displaystring—Large centre figure. Defaults to the formatted value.
captionstring—Small caption under the figure, e.g. "Completed".
colorstring | string[]—Arc colour; an array becomes a gradient. Defaults to the Flab green.
valueFormatter(value: number) => string—Formats the centre figure when display is not given.
heightnumber | string180Chart height.