Skip to main content
.NET Framework 4.5.2+

DataLabelOptions.LeaderLines Property

Provides access to settings used to draw the leader lines for data labels in a pie or doughnut chart.

Namespace: DevExpress.Spreadsheet.Charts

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


ChartLineOptions LeaderLines { get; }

Property Value

Type Description

A ChartLineOptions object containing chart line display options.

Property Paths

You can access this nested property as listed below:

Object Type Path to LeaderLines


Use the LeaderLines property to display and format leader lines connecting data labels with the corresponding data points in a pie or doughnut chart.

Currently, the SpreadsheetControl displays leader lines on a two-dimensional pie or doughnut chart only when the DataLabelBase.LabelPosition property is set to DataLabelPosition.BestFit (which is the default value for the newly created pie chart). If you change the chart type (for example, to a 3-D pie) or set the DataLabelBase.LabelPosition property to another value, the leader lines will disappear. The SpreadsheetControl does not allow you to adjust the appearance of the displayed leader lines, but you can access the LeaderLines property in code, modify the leader lines, and then export a chart in a file in supported formats and open it in Microsoft® Excel®.

See Also