Bullet Chart for Angular
Introduction
Section titled “Introduction”Accessible SVG bullet chart: compact horizontal measures against a target and up to three qualitative ranges (for example poor / satisfactory / good) on a shared value axis. Each row has shaded range bands in neutral shades, a measure bar, and a target tick; each measure bar is keyboard-reachable (Up/Down) and its name reads the value, the target, and the named range, so meaning never depends on shading. A generated summary counts measures at or above target, and a data table lists value, target, and range per measure.
- 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.
Behavior, design tokens, and limitations are described on the Bullet Chart page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiBulletChart } from '@absoluteui/angular/bullet-chart';import type { BulletMeasure } from '@absoluteui/components/bullet-chart';
@Component({ selector: 'app-goals', imports: [AuiBulletChart], template: `<aui-bullet-chart label="Quarterly goals" [measures]="measures" [rangeLabels]="ranges"></aui-bullet-chart>`,})export class GoalsComponent { readonly ranges = ['Poor', 'Satisfactory', 'Good']; readonly measures: BulletMeasure[] = [{ id: 'rev', label: 'Revenue', value: 270, target: 250, ranges: [150, 225, 300] }];}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiBulletChart } from '@absoluteui/angular/bullet-chart';Defaults for every instance: provideAbsoluteUIConfig({ components: { bulletChart: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-bullet-chart>
Section titled “<aui-bullet-chart>”Class AuiBulletChart; template reference #ref="auiBulletChart".
Server rendering: Renders on the server; the browser re-creates it after hydration.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
label |
string |
Required. Chart title: visible text and the accessible name of the plot (aria-labelledby). Must not be blank. | |
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 |
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. | |
measures |
readonly BulletMeasure[] |
Required. 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). | |
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' |
Palette slot of the measure bars. |
valueAxis |
ValueAxisInput |
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 |
ChartTooltipRenderer |
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 |
ChartLegendMode |
'auto' |
Shared chart configuration; a bullet chart never shows a legend (ranges are named in each row’s label). |
dataTable |
ChartTableMode |
'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. |
tooltip |
boolean |
true |
Tooltip on pointer hover and keyboard focus (value, target, range). |
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). |
height |
number |
'300' |
Plot height in CSS px (integer 120-2000), divided evenly between rows; the width follows the container. |
locale |
string |
'en-US' |
Number and message locale. |
direction |
Direction |
'ltr' |
rtl mirrors the value axis, moves labels to the right, and swaps ArrowLeft/ArrowRight. |
Two-way bindings
Section titled “Two-way bindings”| Model | Type | Change output | Description |
|---|---|---|---|
[(hiddenSeries)] |
readonly string[] |
(hiddenSeriesChange) |
Shared chart option; validated but has no effect (a bullet chart has no toggleable series). |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(pointClicked) |
ChartPointClickDetail |
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. Re-emits aui-point-click. |
Methods
Section titled “Methods”Call them through a viewChild query or a template reference.
| Method | Description |
|---|---|
setSeriesVisible(id: string, visible: boolean): void |
Shared chart method; re-renders but has no visible effect on a bullet chart. Emits no event. |
Accessibility and performance
Section titled “Accessibility and performance”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).
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Bullet Chart: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.