Bullet

Bullet chart with background range bands, measure bar, and target tick.

Category: chart · WCAG 2.1-AA · chart, bullet, kpi, progress, data-viz

Props

PropTypeDefaultDescription
valuenumberCurrent measure value
targetnumberTarget marker value
rangesnumber[]Qualitative range breakpoints (sorted ascending)
labelstringText label for the control.
minnumber0Minimum allowed value.
maxnumberDomain maximum (defaults to last range)
widthnumber300Fixed 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.
heightnumber40SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.
classNamestringAdditional CSS class names merged onto the root element.

Design tokens

When to use

When not to use

Examples

Basic bullet chart

import { Bullet } from '@cascivo/charts'

<Bullet value={72} target={80} ranges={[40, 70, 100]} label="Revenue %" />

Related components

← Back to docs