Skip to content
SENVENLI UI

Gauge chart

One value against its range and an optional target, as a half ring.
Against a target
import { GaugeChart } from "@senvenli/react/charts";

Examples

A custom range

`min` and `max` bound a figure that is not a percentage.

Guidelines

When to use it

  • One figure against a goal: utilization, a quota.

Use something else when

  • A compact bar with warning and danger thresholds fits better in a row or card. Meter
  • The value is how far a task has got. Progress
  • The figure and its change matter more than its range. Stat

Accessibility

Built in

  • A "Show as table" button shows the same data as a table, which screen readers get by default.

You provide

  • A title that says what the figure is.

API reference

GaugeChart

title
string

What the chart shows, over it; leave it out when a card or a heading already says so.

aria-label
string

Names the chart when it has no visible title (a card's heading already says what it shows).

period
string
height
numberDefault 160
isLoading
boolean
valueRequired
number
min
numberDefault 0

0 by default.

max
numberDefault 100

100 by default: gauges are for bounded figures (occupancy, quota).

target
number

A 2px tick on the arc, named under the value.

valueFormatter
ChartValueFormatterDefault plain