Back to Devexpress

WaterfallSeriesView Class

corelibraries-devexpress-dot-xtracharts-7cd46494.md

latest5.4 KB
Original Source

WaterfallSeriesView Class

The Waterfall series view.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class WaterfallSeriesView :
    StackedBarSeriesView,
    IWaterfallSeriesView,
    ILegendItemProvider
vb
Public Class WaterfallSeriesView
    Inherits StackedBarSeriesView
    Implements IWaterfallSeriesView,
               ILegendItemProvider

Remarks

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:

Example

This example shows how to create a chart with a data series of the waterfall view.

Implements

IXtraSerializable

IXYSeriesView2D

IXtraSupportDeserializeCollectionItem

ISupportTransparency

ILegendItemProvider

Inheritance

Object ChartElement SeriesViewBase XYDiagram2DSeriesViewBase XYDiagramSeriesViewBase SeriesViewColorEachSupportBase BarSeriesView StackedBarSeriesView WaterfallSeriesView

See Also

WaterfallSeriesView Members

Waterfall Chart

DevExpress.XtraCharts Namespace