Waterfall
Waterfall charts are categorical charts that display the cumulative effect of sequentially introduced positive or negative values. They help visualize how an initial value is affected by a series of intermediate positive or negative changes.
The following example demonstrates the Angular Waterfall chart in action.
Binding to Data
You can bind the Waterfall chart series to an array through the data property in three formats:
-
Binding to numbers—Use a simple array of numeric values.
tspublic data: number[] = [10, -5, 15, -8, 20]; -
Binding to arrays—Use arrays of
[value, category]pairs.tspublic data: [number, string][] = [[10, 'Jan'], [-5, 'Feb'], [15, 'Mar']]; -
Binding to objects—Use an array of objects with custom properties.
tspublic data: Array<{ value: number; category: string; summary?: string }> = [ { value: 10, category: 'Jan' }, { value: -5, category: 'Feb' }, { value: 15, category: 'Mar', summary: 'total' } ];When binding to objects, specify which properties contain the data through the following field mappings:
Property Data type Required Description fieldstringYes* The property name that contains the numeric value (*required when binding to objects). categoryFieldstringNo The property name that contains the category with string,date, ornumbervalues.summaryFieldstringNo The property name that indicates if the point is a summary with "runningTotal"or"total"values.colorFieldstringNo The property name that contains the color with stringvalues.
The following example demonstrates how to bind the Waterfall chart series to data using object models.
Support and Learning Resources
- Waterfall Chart Homepage
- Getting Started with the Kendo UI for Angular Chart
- API Reference of the Charts
- Area Charts
- Bar Charts
- Box Plot Charts
- Bullet Charts
- Line Charts
- Radar Charts
- RangeArea Charts
- RangeBar Charts
- Getting Started with Kendo UI for Angular (Online Guide)
- Getting Started with Kendo UI for Angular (Video Tutorial)
- Video Courses
- Chart Forum
- Before You Start: All Things Angular (Telerik Blog Post)
- Knowledge Base