Waterfall Chart for Angular
Introduction
Section titled “Introduction”Accessible SVG waterfall chart showing how a starting value changes through a sequence of increases and decreases: delta steps float from the running total, total steps drop to the baseline, and dashed connectors link consecutive steps. Increases, decreases, and totals differ by color, texture, signed value labels, and accessible names; every step is keyboard-reachable, with a generated summary and a data table fallback.
- Running totalsChanges float from the running total; total steps drop to the baseline.
- Connectors and labelsDashed connectors between steps and signed value labels.
- Keyboard stepsOne tab stop through every step with a tooltip on focus and hover.
- Data table fallbackA summary of start, end, and largest moves, and a table of change and running total.
- Not color aloneIncrease, decrease, and total differ by texture, sign, and name as well as color.
Behavior, design tokens, and limitations are described on the Waterfall Chart page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiWaterfallChart } from '@absoluteui/angular/waterfall-chart';import type { WaterfallStep } from '@absoluteui/components/waterfall-chart';
@Component({ selector: 'app-bridge', imports: [AuiWaterfallChart], template: `<aui-waterfall-chart label="Profit bridge" [steps]="steps" [connectors]="true"></aui-waterfall-chart>`,})export class BridgeComponent { readonly steps: WaterfallStep[] = [ { id: 'open', label: 'Opening', kind: 'total', value: 100 }, { id: 'sales', label: 'Sales', value: 40 }, { id: 'close', label: 'Closing', kind: 'total' }, ];}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 { AuiWaterfallChart } from '@absoluteui/angular/waterfall-chart';Defaults for every instance: provideAbsoluteUIConfig({ components: { waterfallChart: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-waterfall-chart>
Section titled “<aui-waterfall-chart>”Class AuiWaterfallChart; template reference #ref="auiWaterfallChart".
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). | |
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 (aria-describedby). | |
valueFormat |
NumberFormatOptions |
Number format for values in tooltips, labels, 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. | |
steps |
readonly WaterfallStep[] |
Required. Steps in order: { id, label, value?: number | null, kind?: ‘delta’ | ‘total’ }. Ids are unique and non-empty. delta (default): the change (null: a gap, the running total carries over). total: with a value, the running total becomes it (an opening balance); without, the bar shows the current running total. | |
colors |
WaterfallChartColors |
Palette slots (1-8) per step kind. Default increase 3, decrease 2, total 1. | |
categoryAxis |
{ label?: string; } |
Category axis title (also the first table column header; default “Category”). | |
valueAxis |
ValueAxisInput |
Value axis title, fixed domain, and tick count (2-20). The domain always includes zero. | |
annotations |
readonly ChartAnnotation[] |
Reference lines ({ type: ‘line’, axis: ‘x’ | ‘y’, value, label?, tone? }) and bands ({ type: ‘band’, axis, from, to, label?, tone? }); tone: ‘neutral’ | ‘info’ | ‘success’ | ‘warning’ | ‘danger’. x values are step labels or indexes; y values are numbers. Drawn under the marks (aria-hidden); listed in the accessible summary. | |
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' |
Legend of the step kinds present (Increase, Decrease, Total); not toggleable. auto and show display it, hide removes it. |
dataTable |
ChartTableMode |
'toggle' |
Data table fallback with the exact data: 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. |
patterns |
boolean |
false |
Texture fills (and dash patterns for lines) so marks never differ by color alone (always on in forced colors). |
height |
number |
'300' |
Plot height in CSS px (integer 120-2000); the width follows the container. |
valueLabels |
boolean |
true |
Signed change (deltas) or total printed above the bar (below for decreases and negative totals); a label wider than the step is omitted. |
connectors |
boolean |
true |
Dashed connectors (aria-hidden) from each step to the next at the running total; none into a total step. |
locale |
string |
'en-US' |
Number and message locale. |
direction |
Direction |
'ltr' |
rtl mirrors the category axis (first step at the right), puts the value axis on the right, and swaps ArrowLeft/ArrowRight. |
Two-way bindings
Section titled “Two-way bindings”| Model | Type | Change output | Description |
|---|---|---|---|
[(hiddenSeries)] |
readonly string[] |
(hiddenSeriesChange) |
Accepted and validated (string[]) for the shared chart contract; a waterfall has no series, so it has no effect. |
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 |
Inherited from the shared chart controller; no visible effect (a waterfall has no series). |
Accessibility and performance
Section titled “Accessibility and performance”Pattern: SVG chart as a named, described group (role=“group” with aria-roledescription) of role=“img” data marks with roving focus; data table fallback (native table). Follows the WAI Complex Images tutorial (short name plus long description) and the roving tabindex technique of WAI-ARIA APG.
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Waterfall 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.