BulletChart
Compact target-versus-actual chart.
stable
Quick Preview
0%50%100%
Usage
<BulletChart value={72} target={80} ranges={[50, 75, 100]} />Examples
Default BulletChart
Use this as the starting point for BulletChart. Keep product data, routing, fetching, and authorization logic in the consuming app.
0%50%100%
Props
| Prop/API | Type | Default | Description |
|---|---|---|---|
value | number | - | Actual value. |
target | number | - | Marker target. |
ranges | number[] | - | Qualitative background ranges. |
size | `"sm" | "md" | "lg"` |
className | string | - | Local layout or spacing overrides. |
| native/root props | React component props | - | Passed through to the underlying root or primitive. |
Accessibility
- Provide visible labels or accessible names for interactive controls.
- Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
- Do not communicate state with color alone; include text, icons, or helper copy.