Bullet Chart
Introduction
Section titled “Introduction”An accessible SVG bullet chart: compact horizontal measures against a target and qualitative ranges (for example poor / satisfactory / good). It provides:
- one row per measure on a shared value axis: up to three shaded range bands, a measure bar growing from zero, and a target tick;
- ranges in three neutral shades (not palette colors), named in each row’s accessible label, tooltip, and table (
rangeLabels), so meaning never depends on shading; - keyboard-reachable measure bars (one tab stop, Up/Down between rows) whose names read value, target, and range, with a tooltip on focus and hover;
- a generated summary (every measure, and how many are at or above target) and a data table fallback (Measure, Value, Target, Range).
No animation.
- Value against targetA measure bar with a target tick over up to three range bands.
- Named rangesRange labels appear in names, tooltips, and the table, so shading never carries meaning alone.
- Keyboard rowsOne tab stop; Up and Down move between measures with a tooltip.
- Data table fallbackA summary of how many measures meet target and a table of value, target, and range.
Use it for
- Key performance indicators against targets in a dashboard, with a qualitative scale.
- Replacing gauges and meters with a compact, comparable row layout.
Use something else for
- Measures on very different scales (all rows share one value axis): use one chart per scale or Stat Card.
- Trends over time: use Line Chart or Sparkline.
- A single value against a maximum without target or ranges: use Progress Bar or Gauge.
Anatomy
<div class="aui-chart aui-bullet-chart [aui-chart--patterns]"> <div class="aui-chart__header">title, description</div> <ul class="aui-chart__legend" hidden/> <div class="aui-chart__body"> <svg class="aui-chart__svg" role="group" aria-roledescription="bullet chart" aria-labelledby="T" aria-describedby="S"> <g class="aui-chart__grid" aria-hidden="true"/> <g class="aui-chart__axis aui-chart__axis--value" aria-hidden="true"/> <g class="aui-bullet-chart__rows aui-chart__series--c1"> <g class="aui-bullet-chart__row"> <g class="aui-bullet-chart__ranges" aria-hidden="true"> <rect class="aui-bullet-chart__range aui-bullet-chart__range--1"/> ... --2, --3 </g> <rect class="aui-chart__bar aui-bullet-chart__measure aui-chart__mark" role="img" aria-label="Revenue: 270, target 250, Good"/> <line class="aui-bullet-chart__target" aria-hidden="true"/> </g> </g> <g class="aui-chart__axis aui-chart__axis--category" aria-hidden="true"><text class="aui-bullet-chart__label">Revenue</text></g> </svg> <div class="aui-chart__tooltip" aria-hidden="true" hidden/> </div> <p class="aui-chart__summary" hidden/> <div class="aui-chart__data">Show data table, table</div></div>Live example
Section titled “Live example”Use the bar above each frame to switch theme, density, direction, and locale.
Bullet Chart in the Quarter targets showcase
Section titled “Bullet Chart in the Quarter targets showcase”The part of the Quarter targets showcase that uses Bullet Chart. Change its options, use it with the keyboard, and watch the event log; the link in the frame opens the full showcase. The bar above the frame switches theme, density, direction, and locale.
Showcase source
// KPI charts showcase: targets for a quarter with a gauge, bullet charts, a radar comparison// (per-series style), a treemap with drill-down, and a recruitment funnel with conversion// rates. Style and animation are switchable; point clicks are logged.import { BulletChart } from '@absoluteui/components/bullet-chart';import { FunnelChart } from '@absoluteui/components/funnel-chart';import { Gauge } from '@absoluteui/components/gauge';import { RadarChart } from '@absoluteui/components/radar-chart';import { Treemap } from '@absoluteui/components/treemap';import { chartControls, chartLook, createShowcase, hostIn, section, toggle } from './kit.js';import { NumberInput } from '@absoluteui/components/number-input';
const sc = createShowcase({ title: 'Quarter targets', description: 'Change the gauge value, drill into the treemap with Enter, and compare teams on the radar.',});
const grid = hostIn(sc.stage);grid.className = 'sc-grid';const gaugeSection = section(sc, 'Customer satisfaction', ['gauge']);const bulletSection = section(sc, 'Revenue against target', ['bullet-chart']);grid.append(gaugeSection, bulletSection);const gauge = Gauge.create(hostIn(gaugeSection), { label: 'Customer satisfaction', value: 78, min: 0, max: 100, target: 85, bands: [ { to: 60, label: 'Poor', color: 2 }, { to: 80, label: 'Fair', color: 4 }, { to: 100, label: 'Good', color: 3 }, ],});const bullet = BulletChart.create(hostIn(bulletSection), { label: 'Revenue against target', measures: [ { id: 'emea', label: 'EMEA', value: 410, target: 450, ranges: [300, 400, 500] }, { id: 'apac', label: 'APAC', value: 380, target: 350, ranges: [250, 350, 450] }, { id: 'amer', label: 'Americas', value: 520, target: 560, ranges: [400, 500, 600] }, ], valueFormat: { style: 'currency', currency: 'EUR', notation: 'compact' }, height: 220,});const valueInput = NumberInput.create(hostIn(gaugeSection), { label: 'Satisfaction score', value: 78, min: 0, max: 100, step: 1 });valueInput.host.addEventListener('aui-change', (e) => { const v = (e as CustomEvent<{ value: number | null }>).detail.value; gauge.update({ value: v }); sc.log('gauge value', v);});
const compare = hostIn(sc.stage);compare.className = 'sc-grid';const radarSection = section(sc, 'Team skills', ['radar-chart']);const treeSection = section(sc, 'Spending by department', ['treemap']);compare.append(radarSection, treeSection);const radar = RadarChart.create(hostIn(radarSection), { label: 'Team skills', axes: ['Delivery', 'Quality', 'Collaboration', 'Innovation', 'Customer focus'], series: [ { id: 'platform', label: 'Platform', values: [8, 9, 7, 6, 7] }, { id: 'web', label: 'Web', values: [9, 7, 8, 8, 9], style: { dash: 'dashed', marker: 'diamond' } }, ], valueAxis: { min: 0, max: 10 }, fill: true, height: 300,});const tree = Treemap.create(hostIn(treeSection), { label: 'Spending by department', drillDown: true, rootLabel: 'All departments', data: [ { id: 'eng', label: 'Engineering', children: [{ id: 'cloud', label: 'Cloud', value: 420 }, { id: 'tools', label: 'Tools', value: 120 }, { id: 'hw', label: 'Hardware', value: 90 }] }, { id: 'sales', label: 'Sales', children: [{ id: 'events', label: 'Events', value: 160 }, { id: 'travel', label: 'Travel', value: 110 }] }, { id: 'ops', label: 'Operations', children: [{ id: 'rent', label: 'Rent', value: 300 }, { id: 'utilities', label: 'Utilities', value: 60 }] }, ], valueFormat: { style: 'currency', currency: 'EUR', notation: 'compact' }, height: 300,});const funnel = FunnelChart.create(hostIn(section(sc, 'Recruitment funnel', ['funnel-chart'])), { label: 'Recruitment funnel', stages: [ { id: 'applied', label: 'Applied', value: 1240 }, { id: 'screened', label: 'Screened', value: 610 }, { id: 'interviewed', label: 'Interviewed', value: 220 }, { id: 'offer', label: 'Offer', value: 48 }, { id: 'hired', label: 'Hired', value: 37 }, ], showConversion: true, height: 280,});
sc.listen(tree.host, ['aui-drill', 'aui-series-toggle', 'aui-point-click'], 'treemap');sc.listen(radar.host, ['aui-series-toggle', 'aui-point-click'], 'radar');sc.listen(bullet.host, ['aui-point-click'], 'bullet');sc.listen(funnel.host, ['aui-point-click'], 'funnel');
chartControls(sc, [bullet, radar, tree, funnel], ['bullet-chart', 'radar-chart', 'treemap', 'funnel-chart']);chartLook(sc, [gauge, bullet, radar, tree, funnel]);toggle(sc, 'Radar fill', true, (fill) => { radar.update({ fill });}, ['radar-chart']);toggle(sc, 'Funnel conversion', true, (showConversion) => { funnel.update({ showConversion });}, ['funnel-chart']);toggle(sc, 'Treemap labels', true, (tileLabels) => { tree.update({ tileLabels });}, ['treemap']);Measures against targets with named ranges
Section titled “Measures against targets with named ranges”import { BulletChart } from '@absoluteui/components/bullet-chart';
const host = document.createElement('div');document.body.append(host);BulletChart.create(host, { label: 'Quarterly goals', measures: [ { id: 'revenue', label: 'Revenue', value: 270, target: 250, ranges: [150, 225, 300] }, { id: 'profit', label: 'Profit', value: 22, target: 26, ranges: [20, 25, 30] }, { id: 'orders', label: 'New orders', value: null, target: 180, ranges: [100, 150, 200] }, ], rangeLabels: ['Poor', 'Satisfactory', 'Good'], height: 180,});Percent values on a fixed domain, live update
Section titled “Percent values on a fixed domain, live update”import { BulletChart, type BulletMeasure } from '@absoluteui/components/bullet-chart';
const host = document.querySelector<HTMLElement>('#sla');if (host) { const measures: BulletMeasure[] = [ { id: 'uptime', label: 'Uptime', value: 0.994, target: 0.999, ranges: [0.99, 0.995, 1] }, { id: 'first-response', label: 'First response in 1 h', value: 0.87, target: 0.9, ranges: [0.8, 0.9, 1] }, ]; const chart = BulletChart.create(host, { label: 'Service levels', measures, rangeLabels: ['Breach', 'At risk', 'Met'], valueFormat: { style: 'percent', maximumFractionDigits: 1 }, valueAxis: { min: 0.75, max: 1 }, color: 2, }); chart.update({ measures: measures.map((m) => (m.id === 'uptime' ? { ...m, value: 0.9991 } : m)) });}Install and start
Section titled “Install and start”npm install @absoluteui/components @absoluteui/core @absoluteui/themeRegistry setup, the theme stylesheet, and the Content Security Policy are covered in Installation.
import { BulletChart } from '@absoluteui/components/bullet-chart';import '@absoluteui/components/bullet-chart/style.css';First use
Section titled “First use”import { BulletChart } from '@absoluteui/components/bullet-chart';import '@absoluteui/components/bullet-chart/style.css';
const host = document.querySelector<HTMLElement>('#kpis');if (host) { BulletChart.create(host, { label: 'Customer satisfaction', measures: [ { id: 'csat', label: 'CSAT', value: 4.3, target: 4.5, ranges: [3, 4, 5] }, { id: 'nps', label: 'NPS / 20', value: 2.4, target: 2.5, ranges: [1, 2, 5] }, ], rangeLabels: ['Poor', 'Fair', 'Good'], valueAxis: { min: 0, max: 5 }, height: 160, });}More usage
import { BulletChart } from '@absoluteui/components/bullet-chart';
const host = document.createElement('div');document.body.append(host);BulletChart.create(host, { label: 'Quarterly goals', measures: [ { id: 'rev', label: 'Revenue', value: 270, target: 250, ranges: [150, 225, 300] }, { id: 'profit', label: 'Profit', value: 22, target: 26, ranges: [20, 25, 30] }, ], rangeLabels: ['Poor', 'Satisfactory', 'Good'],});Using Angular? See Bullet Chart for Angular.
API reference
Section titled “API reference”Factory
Section titled “Factory”BulletChart.create(host: HTMLElement, options: BulletChartOptions): BulletChartGlobal configuration key: bulletChart (see Configuration).
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label |
string |
Chart title: visible text and the accessible name of the plot (aria-labelledby). Must not be blank. Required. | |
hideLabel |
boolean |
false |
Visually hide the title; it stays the accessible name. |
description |
string |
Visible description below the title, also referenced by aria-describedby (text only). | |
summary |
string |
Replaces the generated accessible summary (measure count, each measure’s name, and how many are at or above target). | |
valueFormat |
Intl.NumberFormatOptions |
Number format for values and targets in names, the tooltip, the data table, the summary, and axis ticks (ticks use fixed fraction digits). | |
formatValue |
(value: number) => string |
Custom value text; overrides valueFormat everywhere except axis ticks. | |
hiddenSeries |
readonly string[] |
Shared chart option; validated but has no effect (a bullet chart has no toggleable series). | |
measures |
readonly BulletMeasure[] |
Rows: { id, label, value: number | null, target?: number, ranges?: number[] }. Ids are unique and non-empty; null, NaN, and infinities are a missing value; target is finite; ranges are up to three strictly ascending finite upper ends (the first range starts at the axis minimum). Required. | |
rangeLabels |
readonly string[] |
Names of the qualitative ranges in the same order as ranges (up to three, for example [“Poor”, “Satisfactory”, “Good”]); read in each measure’s name, tooltip, and table. Default “Range 1”, “Range 2”, “Range 3”. | |
color |
ChartColor (1-8) |
1 |
Palette slot of the measure bars. |
valueAxis |
BulletChartValueAxis ({ label?: string; min?: number; max?: number; tickCount?: number; includeZero?: boolean }) |
Fixed domain (max > min; marks are clamped to it) and approximate tick count (2-20). The automatic domain always includes zero and spans every value, target, and range end. label and includeZero are validated but not drawn or used. | |
theme |
ChartTheme |
Look and feel: { palette?: string[] (1-8 CSS colors for slots 1-8); fontFamily?; fontSize? (8-32 px); textColor?; gridLines?: boolean; gridColor?; gridDash? (“4 2” or “none”); axisColor?; lineWidth? (0.5-12 px); markerSize? (1-20 px); cornerRadius?, barRadius?, cellRadius?, sliceRadius?, boxRadius? (0-50 px); swatchRadius? (0-8 px); tooltipRadius?, controlRadius? (0-50 px); lineJoin?: ‘round’ | ‘miter’ | ‘bevel’; areaOpacity? (0-1); gradient?: boolean; valueLabelColor?; tooltip?: { background?, color?, borderColor? }; legendPosition?: ‘top’ | ‘bottom’ | ‘start’ | ‘end’; animation?: boolean | { duration?: number (0-5000 ms) } }. Applied as –aui-chart-* custom properties and classes on the host through the CSSOM (CSP-safe); colors are validated with CSS.supports(‘color’). Animation is opt-in and never runs with prefers-reduced-motion: reduce or [data-aui-animation=‘none’]. | |
renderTooltip |
(context: ChartTooltipContext) => Node | null |
Custom tooltip content as DOM nodes (never HTML strings). context: { title, rows: { label, value, seriesId }[], column, row, source: “pointer” | “focus” | “sync” }. Return null for the default tooltip. The tooltip stays aria-hidden; the focused mark keeps its accessible label. | |
syncGroup |
string |
Synchronized crosshair: charts with the same group show the crosshair, highlight, and tooltip at the same column (category or x index) when one of them is hovered or focused. Focus never moves between charts. Use charts that share their categories or x values. | |
legend |
'auto' | 'show' | 'hide' |
"auto" |
Shared chart configuration; a bullet chart never shows a legend (ranges are named in each row’s label). Globally configurable. |
dataTable |
'toggle' | 'visible' | 'hidden' | 'none' |
"toggle" |
Data table fallback (Measure, Value, Target, Range): behind a Show data table button (built on first open), always visible, visually hidden (screen readers only), or none. Globally configurable. |
tooltip |
boolean |
true |
Tooltip on pointer hover and keyboard focus (value, target, range). Globally configurable. |
patterns |
boolean |
false |
Shared chart configuration; toggles the aui-chart–patterns host class. Bullet charts draw no textures (one measure color; ranges are neutral shades named in text). Globally configurable. |
height |
number |
300 |
Plot height in CSS px (integer 120-2000), divided evenly between rows; the width follows the container. Globally configurable. |
locale |
string |
"en-US" |
Number and message locale. Globally configurable. Inherited from common configuration. |
direction |
'ltr' | 'rtl' |
"ltr" |
rtl mirrors the value axis, moves labels to the right, and swaps ArrowLeft/ArrowRight. Globally configurable. Inherited from common configuration. |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
host |
HTMLElement |
The host element. |
element |
SVGSVGElement |
The plot (svg role=“group”), named by the title and described by the summary. |
summary |
string |
The generated (or custom) accessible summary. |
hiddenSeries |
string[] |
Always empty (a bullet chart has no toggleable series). |
Methods
Section titled “Methods”| Method | Description |
|---|---|
update(options: Partial<BulletChartOptions>): void |
Merge, validate, and re-render. Invalid options throw and keep the previous state. Keyboard focus stays on the same measure (by id). |
setSeriesVisible(id: string, visible: boolean): void |
Shared chart method; re-renders but has no visible effect on a bullet chart. Emits no event. |
destroy(): void |
Remove rendering, host classes, listeners, the resize observer, and the configuration subscription. |
Events
Section titled “Events”| Event | Detail | Bubbles | Cancelable | Description |
|---|---|---|---|---|
aui-point-click |
BulletChartPointClickDetail = ChartPointClickDetail: { seriesId: string | null; column: number; row: number; label: string; series: string; value: string; source: 'pointer' | 'keyboard' } |
Yes | No | A data mark was activated: pointer click or tap, or Enter / Space on the focused mark. label is the category, x value, or item; value is the formatted value text. Keyboard navigation is unchanged. |
CSS classes
Section titled “CSS classes”All rules live in the aui.components cascade layer, so application styles override them without specificity battles.
| Class | Purpose |
|---|---|
aui-chart |
Host (shared chart chrome). |
aui-bullet-chart |
Host modifier for this chart type. |
aui-chart--patterns |
patterns option on (no textures are drawn by a bullet chart). |
aui-chart__header / __title / __title--hidden / __description / __toolbar |
Title and description; the toolbar stays hidden. |
aui-chart__legend |
Legend list; always hidden for a bullet chart. |
aui-chart__body / __svg / __layer |
Plot container (height from –aui-chart-height), SVG, and drawing layer. |
aui-chart__grid / __gridline / __zero-line / __axis / __axis--value / __axis--category / __tick-label |
Value axis and the measure label column (aria-hidden). |
aui-chart__series--c1 ... --c8 |
Palette slot class on the rows group (color option); sets –aui-chart-color from color-chart-<n>. |
aui-chart__mark / __mark--active / __mark--hover |
Focusable measure bar and its states. |
aui-chart__bar |
Measure bar paint (series color with a surface-colored separator; text-colored outline on hover and focus). |
aui-chart__tooltip / __tooltip-title / __tooltip-rows / __tooltip-row / __tooltip-label / __tooltip-value / __swatch |
Tooltip (aria-hidden; the focused bar carries the same text). |
aui-chart__empty |
Empty state text (No data). |
aui-chart__summary |
Hidden summary referenced by aria-describedby. |
aui-chart__data / __data--hidden / __table-toggle / __table-scroll / __table / __cell--numeric |
Data table fallback. |
aui-bullet-chart__rows / __row |
All rows, and one group per measure. |
aui-bullet-chart__ranges / __range / __range--1 / __range--2 / __range--3 |
Decorative (aria-hidden) qualitative range bands, darkest first. |
aui-bullet-chart__measure |
The focusable measure bar. |
aui-bullet-chart__target |
Target tick (aria-hidden). |
aui-bullet-chart__label |
Measure label beside the row (aria-hidden). |
aui-chart--legend-bottom / --legend-start / --legend-end |
theme.legendPosition (top is the default layout). |
aui-chart--no-grid / --gradient / --animate / --entering |
theme.gridLines: false, theme.gradient, theme.animation (entering: the render that animates). |
aui-chart__annotations / __annotation-line / __annotation-band / __annotation-label / __annotation--<tone> |
Annotations (aria-hidden), drawn under the marks. |
aui-chart__gradient / __gradient-stop |
Gradient fills (theme.gradient). |
aui-chart__tooltip--custom |
Tooltip content comes from renderTooltip. |
Design tokens
Section titled “Design tokens”Tokens this stylesheet reads (verified in CI). Override them in a theme or with the Theme Designer.
--aui-border-width | --aui-border-width-strong | --aui-color-border | --aui-color-border-strong | --aui-color-chart-1 | --aui-color-chart-2 | --aui-color-chart-3 | --aui-color-chart-4 | --aui-color-chart-5 | --aui-color-chart-6 | --aui-color-chart-7 | --aui-color-chart-8 | --aui-color-chart-axis | --aui-color-chart-grid | --aui-color-error-fg | --aui-color-focus-ring | --aui-color-hover | --aui-color-info-fg | --aui-color-link | --aui-color-success-fg | --aui-color-surface | --aui-color-surface-sunken | --aui-color-text | --aui-color-text-muted | --aui-color-warning-fg | --aui-duration-fast | --aui-easing-standard | --aui-focus-ring-offset | --aui-focus-ring-width | --aui-font-family-sans | --aui-font-size-md | --aui-font-size-sm | --aui-font-size-xs | --aui-font-weight-medium | --aui-font-weight-regular | --aui-font-weight-semibold | --aui-line-height-normal | --aui-line-height-tight | --aui-radius-md | --aui-radius-sm | --aui-shadow-md | --aui-space-1 | --aui-space-2 | --aui-space-3 | --aui-tooltip-max-width | --aui-touch-target-min
TypeScript definitions
type BulletChartConfig = ChartBaseConfig;interface BulletMeasure { id: string; label: string; value: number | null; target?: number; ranges?: readonly number[] }interface BulletChartOptions extends ChartCommonOptions, Partial<BulletChartConfig> { measures: readonly BulletMeasure[]; rangeLabels?: readonly string[]; color?: ChartColor; valueAxis?: BulletChartValueAxis; // { label?; min?; max?; tickCount?; includeZero? }}Accessibility and performance
Section titled “Accessibility and performance”Accessibility
Section titled “Accessibility”Pattern: SVG bullet chart as a named, described group (role=“group” with aria-roledescription “bullet chart”) of role=“img” measure bars with roving focus (Up/Down between rows); data table fallback (native table: Measure, Value, Target, Range).
Checked on every docs build: the showcase passes axe (WCAG 2.2 A and AA rules) in the default, dark, and high-contrast themes and right to left; the playground loads without errors and passes axe before and after every on/off option is switched, with no Content Security Policy violations.
Keyboard
Section titled “Keyboard”| Key | Context | Action |
|---|---|---|
| ArrowDown / ArrowUp | Measure focused | Next / previous row. |
| ArrowRight / ArrowLeft | Measure focused | Also next / previous row (swapped in RTL). |
| Home / End | Measure focused | First / last row. |
| PageUp / PageDown | Measure focused | Ten rows back / forward (clamped to the first / last). |
| Escape | Tooltip visible | Hides the tooltip without moving focus (WCAG 1.4.13); it returns on the next move. |
| Tab / Shift+Tab | Any | One tab stop for the plot (the active measure), then the Show data table button and table region. |
| Element | Role |
|---|---|
| svg.aui-chart__svg | group with aria-roledescription (localized “bullet chart”), named by the title |
| measure bars | img with an aria-label: measure name, formatted value, target, and the named qualitative range |
| data table | table (native) with caption, column headers, and row headers; wide tables scroll in a focusable region |
| range bands, target ticks, measure labels, axis, tooltip | aria-hidden (decorative duplicates of the accessible data) |
ARIA attributes
Section titled “ARIA attributes”| Attribute | Element | Value |
|---|---|---|
aria-labelledby |
svg | id of the visible (or visually hidden) title |
aria-describedby |
svg | description id (when provided) and the generated summary id |
aria-roledescription |
svg | Localized chart type, “bullet chart” |
aria-label |
each measure bar | Localized “{label}: {value}”, then “, target {target}” when a target is set, then “, {range}” when ranges are set (for example “Revenue: 270, target 250, Good”); missing values read “No value” |
tabindex |
active measure bar | 0 on exactly one bar (roving); other bars have none |
aria-expanded / aria-controls |
Show data table button | Table open state and the table region id |
Roving focus: one measure bar is in the tab sequence and remembers the last visited measure (by id), also across re-renders (resize, update). Toggling the table keeps focus on the table button.
WCAG 2.2 success criteria addressed
Section titled “WCAG 2.2 success criteria addressed”Automated test results: Accessibility and compliance.
Notes and known caveats
Section titled “Notes and known caveats”- Qualitative ranges use three neutral shades (not palette colors) and are named in each row’s accessible label, tooltip, and table (rangeLabels, default “Range 1”…“Range 3”), so meaning never depends on shading.
- The measure falls in the first range whose upper end is at or above the value; values above the last range end read as the last range.
- The generated summary lists the measure count, every measure’s label text, and how many measures with a target are at or above it (for example “1 of 2 at or above target.”).
- The target tick is a 3 px text-colored line across the band; the measure bar is a third of the band height.
- Forced colors: ranges become Canvas with GrayText outlines, targets and labels CanvasText; focus and hover use Highlight.
- No animation: nothing moves on render; hover and focus emphasis transitions are removed under prefers-reduced-motion and animation: none.
- Manual screen-reader verification (NVDA, JAWS, VoiceOver, TalkBack) is pending.
- aria-roledescription support varies; screen readers without it announce “group”.
- Range band boundaries themselves are not exposed; only the range the value falls in is named.
Performance
Section titled “Performance”| Import cost | Minified | gzip | brotli | CSS brotli |
|---|---|---|---|---|
@absoluteui/components/bullet-chart |
47.9 kB | 17.0 kB | 15.2 kB | 2.4 kB |
Measured at build time, including every AbsoluteUI module the component pulls in. No third-party runtime dependencies.
| Budget (enforced in CI) | Limit |
|---|---|
| BulletChart.create, 30 measures with targets and ranges, including the first render | < 30 ms in headless Chromium (e2e performance test) |
Tested scale: Up to about 30 measures per chart (each row is one focusable bar, up to three range bands, a target tick, and a label); increase height with the number of rows.
Budget: create with 30 measures < 30 ms in headless Chromium (e2e performance test), including the first render.
Measured run times: Performance.
Details
Section titled “Details”States
default, empty (“No data”: no measures), measure missing, measure focused (tooltip), row hovered, table open.
State transitions
| From | Trigger | To |
|---|---|---|
| plot not focused | Tab | active measure focused, tooltip shown |
| measure focused | arrow keys, Home, End, PageUp, PageDown | another measure focused |
| tooltip visible | Escape | tooltip hidden |
| table closed | Show data table | table shown |
| any | update({ measures }) |
re-rendered; focus stays on the same measure id |
Accessibility notes
- Ranges are neutral shades (22%, 13%, 6% of
color-textovercolor-surface, darkest first) and are always named in text; passrangeLabelsso rows read “Good” rather than “Range 3”. - The value falls in the first range whose upper end is at or above it; values above the last range read as the last range.
- Summary example ends with “1 of 2 at or above target.” (measures with a target and a value).
- Forced colors: ranges
CanvaswithGrayTextoutlines; targets and labelsCanvasText; focus and hoverHighlight. - No animation. Manual screen-reader verification is pending.
Responsive behavior
Width follows the container; labels take up to 35% of the width and are truncated with an ellipsis. Bands are at most 40 px tall; the measure bar is a third of the band. Reflows at 320 CSS px.
Right-to-left
The value axis is mirrored (bars grow leftward from zero), labels move to the right, ArrowLeft/ArrowRight swap.
Theming
Range shades derive from color-text and color-surface, so they follow every theme. The measure bar uses one palette slot (color, default color-chart-1).
Global configuration
configureAbsoluteUI({ components: { bulletChart: { height: 200, dataTable: 'visible' } } });Component configuration
Instance options override global and theme defaults. All options are dynamic.
Security
All text uses textContent; SVG uses createElementNS; colors are classes; the height and tooltip position use the CSSOM. No innerHTML or style attributes.
Data handling
No persistence, network access, or telemetry. Values are not logged; validation errors name the option, never its value.
Supported data scale
Up to about 30 measures per chart; raise height with the row count (bands shrink with the row height).
Edge cases
- No measures: “No data”.
- Missing value (
null,NaN, infinity): no bar (a zero-width focusable mark), “No value” in its name and table; excluded from the at-or-above-target count. - No target: no tick, “-” in the table. No ranges: no bands, “-” in the Range column.
- Negative values: bars grow from zero toward the negative side; the domain includes zero.
- A fixed
valueAxisdomain clamps bars, targets, and bands to its edges. - Fewer
rangeLabelsthan ranges: the rest read “Range {n}”.
Errors
| Code | Category | Cause |
|---|---|---|
BULLET_CHART_OPTIONS |
configuration | Blank label; measures not an array; measure not an object; empty or duplicate id; label not a string; value not a number or null; target not finite; more than 3 ranges or not strictly ascending finite numbers; more than 3 rangeLabels or not strings; color not 1-8; invalid valueAxis (max <= min, tickCount outside 2-20). |
CFG_INVALID_VALUE / CFG_UNKNOWN_OPTION |
configuration | Invalid or unknown configuration. |
A failed construction leaves the host untouched.
Known limitations
- Horizontal rows on one shared axis; one measure color; at most three ranges.
legend,patterns,hiddenSeries,valueAxis.label, andvalueAxis.includeZerohave no effect.- Manual screen-reader verification is pending.
- Animation is opt-in (
theme.animation) and replays after each data or option change; it never runs withprefers-reduced-motion: reduceor[data-aui-animation='none']. syncGroupmatches charts by column index (category or x index); use it for charts that share their categories or x values.- No annotations (no cartesian value axes).
- No zoom or pan: each measure has its own fixed range.
Unsupported scenarios
- Vertical bullets, per-row axes, comparative (second) measures.
- More than three ranges.
- HTML in labels.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.