Gauge
Radial gauge that shows one value against a maximum.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value required | number | None | Current value, in the same unit as max |
max | number | 100 | Upper bound of the scale |
tone | GaugeTone | None | Color band. Omit it to derive the band from scale. |
scale | GaugeScale | "higher-is-better" | Which end of the scale is bad |
showValue | boolean | true | Print the value inside the ring |
label | string | None | Accessible description. Not drawn. |
Example
ts
Gauge({ value: 72, scale: "higher-is-worse", label: "Disk used" })Supporting types
GaugeTone
export type GaugeTone =
| "info"
| "healthy"
| "warning"
| "unavailable"
| "muted";GaugeScale
export type GaugeScale = "higher-is-better" | "higher-is-worse";