ValyroUI Русская версия

Gauge Chart

Radial gauges. Pro · Charts and analytics › Analysis and scenarios

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add gauge-chart
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { GaugeChart } from 'valyro-ui-pro';

Props

PropTypeDefault
value *numberCurrent reading; the indicator is clamped to min–max, a non-finite value shows as min.
minnumber0Default 0.
maxnumber100Default 100.
bandsGaugeBand[]Threshold bands in ascending order; the value takes the tone of its band.
sweep180 | 270180Semicircle (180) or open ring (270). Default 180.
indicator'arc' | 'needle''arc'arc: progress arc. needle: colored bands with a needle. Default arc.
labelstringCaption under the value.
valueFormatterValueFormatterFormats the center value and the min/max end labels (one decimal by default).
localestringBCP 47 locale for the default number formatting. Default: the ThemeProvider locale, then the browser's.
sizenumber240Max width in px; the gauge scales down in narrow containers. Default 240.
ariaLabel *stringAccessible name of the gauge; the formatted value is appended to it.

Related components

Previous: Sequence Diagram · Next: Metric Comparison · All Charts and analytics