Skip to main content
All docs
.NET Framework 4.5.2+

WaterfallSeriesOptions Interface

Contains options for waterfall data series.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v22.2.Core.dll


public interface WaterfallSeriesOptions


Use the WaterfallSeriesOptions object’s properties to specify options for a waterfall chart.

Property Description
WaterfallSeriesOptions.ShowConnectorLines Specifies whether to display connector lines between data points.
WaterfallSeriesOptions.SubtotalDataPoints Returns a collection of total points.

Waterfall chart

// Create a waterfall chart and specify its location.
Chart chart = worksheet.Charts.Add(ChartType.Waterfall, worksheet["B2:C7"]);
chart.TopLeftCell = worksheet.Cells["E2"];
chart.BottomRightCell = worksheet.Cells["L17"];

// Hide the major gridlines for the value axis.
chart.PrimaryAxes[1].MajorGridlines.Visible = false;

// Specify series options.
var options = chart.Series[0].LayoutOptions.Waterfall;
// Display connector lines.
options.ShowConnectorLines = true;
// Set the third data point as the total.
// Set the last data point as the total.

// Add the chart title.
chart.Title.Visible = true;
chart.Title.SetValue("Income Statement");
See Also