Funnel Chart for Angular
Introduction
Section titled “Introduction”Accessible SVG funnel chart for sequential stages (for example visits, sign-ups, purchases): centered bars whose width is proportional to the stage value, joined by decorative trapezoid connectors. Each stage prints its value and its conversion from the previous stage, reads its value and conversion from the first and previous stage to assistive technology, and is keyboard-reachable; a generated summary names the overall conversion and the largest drop, and a data table lists every conversion.
- Stage widthsEach stage bar is proportional to its value, joined by connectors.
- Conversion ratesShows conversion from the previous stage beside each step.
- Keyboard stagesOne tab stop; names read value and conversion from the first and previous stage.
- Data table fallbackA summary of overall conversion and the largest drop, plus a table.
Behavior, design tokens, and limitations are described on the Funnel Chart page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiFunnelChart } from '@absoluteui/angular/funnel-chart';import type { FunnelStage } from '@absoluteui/components/funnel-chart';
@Component({ selector: 'app-checkout', imports: [AuiFunnelChart], template: `<aui-funnel-chart label="Checkout" [stages]="stages"></aui-funnel-chart>`,})export class CheckoutComponent { readonly stages: FunnelStage[] = [ { id: 'visits', label: 'Visits', value: 1000 }, { id: 'paid', label: 'Paid', value: 100 }, ];}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 { AuiFunnelChart } from '@absoluteui/angular/funnel-chart';Defaults for every instance: provideAbsoluteUIConfig({ components: { funnelChart: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-funnel-chart>
Section titled “<aui-funnel-chart>”Class AuiFunnelChart; template reference #ref="auiFunnelChart".
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 (stage count, first and last stage, overall conversion, largest drop). | |
valueFormat |
NumberFormatOptions |
Number format for stage values in labels, accessible names, the tooltip, the data table, and the summary. Conversions are always percentages with at most one fraction digit. | |
formatValue |
(value: number) => string |
Custom value text; overrides valueFormat. | |
stages |
readonly FunnelStage[] |
Required. Stages in order: { id, label, value: number | null, color?: 1-8 }. Ids are unique and non-empty; values are non-negative; null, NaN, and infinities are a missing stage (read “No value”). | |
color |
ChartColor |
'1' |
Palette slot for every stage without its own color. |
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 funnel never shows a legend (stages are labelled beside their bars). |
dataTable |
ChartTableMode |
'toggle' |
Data table fallback (Stage, Value, Of first stage, Of previous stage): 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, of first stage, of previous stage). |
patterns |
boolean |
false |
Shared chart configuration; toggles the aui-chart–patterns host class. Funnel stages draw no textures (there is one series). |
height |
number |
'300' |
Plot height in CSS px (integer 120-2000), divided evenly between stages; the width follows the container. |
showConversion |
boolean |
true |
Print the conversion from the previous stage next to each stage value (“400 | 40%”). Accessible names, the tooltip, and the table always include conversions. |
locale |
string |
'en-US' |
Number, percent, and message locale. |
direction |
Direction |
'ltr' |
rtl moves stage names and values to the right side 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 funnel 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 funnel. Emits no event. |
Accessibility and performance
Section titled “Accessibility and performance”Pattern: SVG funnel chart as a named, described group (role=“group” with aria-roledescription “funnel chart”) of role=“img” stage bars with roving focus; data table fallback (native table: Stage, Value, Of first stage, Of previous stage).
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Funnel 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.