corelibraries-devexpress-dot-xtracharts-7cd46494.md
The Waterfall series view.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public class WaterfallSeriesView :
StackedBarSeriesView,
IWaterfallSeriesView,
ILegendItemProvider
Public Class WaterfallSeriesView
Inherits StackedBarSeriesView
Implements IWaterfallSeriesView,
ILegendItemProvider
The following image shows a waterfall chart and its element:
A data source for a waterfall chart can store relative and absolute data values.
For a chart with relative data, you can add a start bar with a given value and label. To do this, cast the ValueOptions property to WaterfallRelativeValueOptions. Then, specify the WaterfallRelativeValueOptions.StartBarValue and WaterfallRelativeValueOptions.StartBarLabel properties.
If the data source stores absolute data values, cast the ValueOptions property to the WaterfallAbsoluteValueOptions type.
The Waterfall chart displays a Total bar. To change its label, use the WaterfallValueOptionsBase.TotalLabel property. To hide the total bar, set WaterfallValueOptionsBase.ShowTotal to false.
You can add a sets of subtotals. To do this, populate the WaterfallValueOptionsBase.Subtotals collection with Subtotal objects.
Use the following properties to change the appearance of waterfall chart elements:
This example shows how to create a chart with a data series of the waterfall view.
WaterfallSeriesView object to configure the series view options.IXtraSupportDeserializeCollectionItem
Object ChartElement SeriesViewBase XYDiagram2DSeriesViewBase XYDiagramSeriesViewBase SeriesViewColorEachSupportBase BarSeriesView StackedBarSeriesView WaterfallSeriesView
See Also