---
id: "packages/active-charts/all-exports/bullet-chart"
title: "BulletChart"
description: "BulletChart, BulletChartProps: generated from the source of active-charts."
url: "/packages/active-charts/all-exports/bullet-chart"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:bullet-chart"
---

# BulletChart

Exported by `@workspace/active-charts`. Generated from the package source; part of [the index of every export](/packages/active-charts/all-exports).

## `BulletChart`

| Prop | Type | Required | Description |
| --- | --- | --- | --- |
| `height` | `number` | yes | Container height in pixels. Width is always responsive. |
| `value` | `number` | yes | The current value. |
| `accessibility` | `StandaloneAccessibilityOptions` | no | Accessible name, description, data table and keyboard navigation. No `announcements`: it switches `<Chart>`'s interaction announcements, which this family does not make. |
| `animation` | `ScalarAnimationOption<never>` | no | The entrance: on, off, `duration`, `easing` and the entrance `type`. One value and no series, so no `stagger`, `update`, `layers` or `exit`; a new value always moves on from the current one (ADR-082, LAB-AT17). `easing` shapes the `sweep`/`wipe` and `fade` entrances; `count-up` runs on the package's `ease-out`. |
| `className` | `string` | no | Optional className applied to the outer container. |
| `contextMenu` | `FeatureOption<ChartContextMenuOptions<unknown, "export">>` | no | The chart's menu: the host's items, then Export; a single value has no element, range or legend to copy, zoom or hide. The host's items come first; their context's target is the chart. `GaugeChart` adds the Replay animation action when its `replay` is on (T7). |
| `dataLabels` | `Pick<DataLabelOptions, "background" \| "format" \| "formatter">` | no | The notation of the value readout: `formatter` or the `format` shorthand, and an optional `background` behind it. The readout itself is essential and always drawn (FV4, ADR-072); its size and colour are the family's. |
| `dir` | `"ltr" \| "rtl"` | no | The chart's UI direction: the reading direction of its HTML text and chrome (tooltip, legend, menus, the accessible table), and the direction the context menu carries under `<body>`.  Left out, the chart inherits the direction of the page around it (the nearest `dir` attribute, else the computed CSS direction) and follows a later change of that attribute. It is never inferred from `locale`, and it never reverses an axis or reorders data: `reversed` stays an explicit axis choice. Under `rtl` the chrome mirrors (legend flow, tooltip side, context menu and submenus, report text in exports), a title-like label starts at the inline start, and a label placed by geometry (an axis tick, a slice or bar label) keeps its physical side; plot arrow keys stay spatial while legend and menu arrows follow the reading direction. |
| `events` | `Omit<ChartEvents, "onLegendChange" \| "onZoomChange">` | no |  |
| `label` | `string` | no | Label displayed above the bullet (typically the KPI name). |
| `locale` | `ValuePresentation` | no | Presentation input for axis labels, tooltips, labels and accessibility announcements: a locale code (notation follows the language), or a presentation-context object (`{languageLocale, dateShape?, dateFormat?, timeFormat?, numberFormat?, currencyDisplay?}`) carrying language and notation independently. `dateShape` is the normal human date shape a plain date consumer inherits; an axis that declares its own preset for readability keeps it. Forwarded untouched to the central `@workspace/active-format`; the package never resolves tenant or application settings itself. When omitted, `<ChartDefaults>` supplies it; with neither, the chart throws a configuration error (no `'en'` fallback, active-format D14). Object inputs must be referentially stable across renders. |
| `max` | `number` | no | Maximum end of the scale. Optional — the individual chart component supplies a default when omitted (e.g. `GaugeChart` defaults to `100`). |
| `min` | `number` | no | Minimum end of the scale. Default: `0`. |
| `onAnimationComplete` | `((event: AnimationCompleteEvent) => void)` | no | Fired when a chart animation completes. - `'load'`: initial mount animation finished (or immediately if animation disabled / prefers-reduced-motion is active). - `'update'`: data-update transition finished.  Not triggered by zoom animations (use `onZoomChange`) or tooltip fades. |
| `onExportComplete` | `((result: ChartExportResult) => void)` | no | Fired after a successful export action (PNG/SVG/CSV/PDF), including from the context menu and from imperative `ChartHandle` calls. |
| `onExportError` | `((format: ChartExportFormat, error: unknown) => void)` | no | Fired when an export could not produce its file (W11), from the handle as well as from the context menu. Without it a failed context-menu export is reported as an error diagnostic (`<ChartDefaults diagnostics>`). |
| `onReady` | `(() => void)` | no | Fired exactly once per chart instance, after the first successful mount with valid dimensions and **before** any entrance animation starts. "Ready" means: the SVG is in the DOM, layout has run with real dimensions, and the chart can be queried by integration tests.  Distinct from {@link onAnimationComplete} with `type: 'load'`, which fires *after* the load animation finishes. A chart with `animation={false}` still fires `onReady` — animation state has no effect on readiness.  A new React `key` on the host produces a new component instance and `onReady` fires again. Identity changes of the callback itself after the first fire are ignored (latch is per-instance).  **Consumer requirement — stable from first render.** The latch closes on the first effect run regardless of whether `onReady` was defined at that moment. If `onReady` is initially `undefined` and later resolves to a function, the callback will **never** fire — the latch has already closed with a no-op. Pass a stable reference (typically via `useCallback`) or pass the final function unconditionally from the first render. |
| `orientation` | `"horizontal" \| "vertical"` | no | Orientation. Default: 'horizontal' — the canonical Bullet layout. Vertical mirrors min→max from bottom to top. |
| `scale` | `ScalarScaleOption` | no | The tick scale (T7, ADR-100): `true` for ticks at automatic round values, `{ticks: [...]}` for exactly these values. Absent or `false`: only the two labelled ends. The ends are always labelled; an interior label gives way where it would meet an end or the target, its tick staying. Drawing only: ticks are in no name, table or CSV. |
| `t` | `ChartTranslateFn` | no | The host translator for every text the chart shows or announces. When omitted, `<ChartDefaults>` supplies it; with neither, the chart throws a configuration error (no English fallback, ADR-028). |
| `target` | `ScalarTarget` | no | One reference value (T7): a number, or `{value, label}` to name it ("Budget 1.500" in place of "Target 1.500"). Its mark stops at the nearer end beyond the scale; every text keeps the true number and the name and table say it lies above or below the scale. A value that is not finite is neither drawn nor stated (a development diagnostic). |
| `thickness` | `number` | no | Total track thickness in pixels; the value bar is 60% of it. Default: 24. |
| `valueSemantics` | `ChartValueSemantics` | no | What the value means (BC1): unit and precision, declared once with the type the Cartesian charts read (`ChartValueSemantics`). The readout, the scale's end labels, the accessible name and the data table write the value, `min`, `max` and the target in it; the share of the range stays a percentage. `dataLabels.formatter` or `format` still wins; without a declaration the chart presentation's number applies. At rest the readout is `value` itself in every animation mode. CSV keeps the raw number. |
| `width` | `number` | no | Optional fixed width in pixels. Default: fill container. |
| `zones` | `GaugeZone[]` | no | Quality bands rendered as the track background. Empty array → neutral track. |

## Types

**BulletChartProps**

```ts
interface BulletChartProps extends ScalarChartProps {
  zones?: GaugeZone[];
  label?: string;
  dataLabels?: Pick<DataLabelOptions, 'formatter' | 'format' | 'background'>;
  thickness?: number;
  orientation?: 'horizontal' | 'vertical';
}
```

Props for {@link BulletChart}. Compact KPI visualization following the
Stephen Few canonical Bullet layout: quality bands fill the full track,
a thinner value bar (60% of `thickness`) renders centered on top of the
bands, and an optional `target` is shown as a short perpendicular tick
across the value bar.

Reuses {@link GaugeZone} for quality bands, the same shape as
{@link LinearGaugeProps.zones}. Supports a single `target`.

There is no `colors` prop: {@link ScalarChartProps} leaves it out, since
no palette reaches a scalar (LAB-AT21). Zones carry their own
explicit colors, and the value bar is drawn in the on-fill token that
contrasts most with the bands and track beneath it.
