Officina UI
Components

GaugeChart

Gauge chart showing a single value as an arc against a min/max range, like a dial.

GaugeChart renders a single value as a dial arc against a range — use it for one headline number measured against a target, such as quota attainment or utilization. Pass the value, optionally set min/max (default 0–100) and a label. It renders client-side via ECharts, so give it a height (defaults to 280). For a lighter SVG dial or progress bar, see Gauge.

Example

Preview
import { GaugeChart } from '@officina/ui';

<GaugeChart value={72} label="Quota" max={100} height={280} />;

API

PropTypeDefaultDescription
value*number—Current value to display.
classNamestring—
colorstring—Fill colour of the gauge arc.
heightnumber280Chart height in pixels.
labelstring—Caption shown with the value.
maxnumber100Upper bound of the scale. Defaults to 100.
minnumber0Lower bound of the scale. Defaults to 0.

On this page