Skip to main content
All docs
V24.1

WaterfallSeriesOptions.ShowConnectorLines Property

Specifies whether to display connector lines between data points.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

bool ShowConnectorLines { get; set; }

Property Value

Type Description
Boolean

true to display connector lines; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowConnectorLines
SeriesLayoutOptions
.Waterfall .ShowConnectorLines

Remarks

The example below creates a waterfall chart and specifies its settings.

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.
options.SubtotalDataPoints.Add(2);
// Set the last data point as the total.
options.SubtotalDataPoints.Add(5);

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