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)
widthnumber300SVG width in px. **This chart is fixed-width by default** — it is a compact, inline chart meant to sit in a table cell or beside a label, so omitting `width` gives you 300px rather than a container-filling chart. Pass a number to change it. The catalogue-wide "omit for a responsive chart" note does not apply to this chart.
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