Meter

Progress meter in bar or gauge variant with threshold coloring.

Category: chart · WCAG 2.1-AA · chart, meter, gauge, progress, data-viz

Variants

Props

PropTypeDefaultDescription
valuenumberCurrent value
labelstringText label for the control.
minnumber0Minimum allowed value.
maxnumber100Maximum allowed value.
variant'bar' | 'gauge'barSelects the visual style variant.
thresholdsMeterThresholdsColor breakpoints
widthnumberFixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.
heightnumberSVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.

Design tokens

When to use

When not to use

Examples

Basic meter

import { Meter } from '@cascivo/charts'

<Meter value={72} label="CPU usage" />

Related components

← Back to docs