[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabels.ShowLeaderLines

ShowLeaderLines Property

ShowLeaderLines

Gets or sets whether leader lines are displayed for the data labels.

Leader lines connect data labels to their corresponding data points when the labels are positioned away from the series.

Declaration
bool ShowLeaderLines { get; set; }
Property ShowLeaderLines As Boolean
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Category", "Value"},
    {"A", 30},
    {"B", 20},
    {"C", 50}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Pie, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
IDataLabels dataLabels = series.DataLabels;
dataLabels.ShowLeaderLines = true;
bool showLeaderLines = dataLabels.ShowLeaderLines;