From 18debaf6e5c6c59706f9a47a74fb84ee85a48d0e Mon Sep 17 00:00:00 2001 From: "sneha.biju" Date: Tue, 5 Mar 2024 17:00:02 +0530 Subject: [PATCH 1/2] ES-868612 - Add UG documentation for ShowLeaderLines of chart in PowerPoint --- .../Presentation/Charts/Chart-Data-Labels.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/File-Formats/Presentation/Charts/Chart-Data-Labels.md b/File-Formats/Presentation/Charts/Chart-Data-Labels.md index 92b0ab417..62a5de5be 100644 --- a/File-Formats/Presentation/Charts/Chart-Data-Labels.md +++ b/File-Formats/Presentation/Charts/Chart-Data-Labels.md @@ -247,6 +247,35 @@ chart.Series(0).DataPoints(0).DataLabels.Layout.ManualLayout.Top = 3 {% endhighlight %} {% endtabs %} +## Show Leader lines + +The leader lines can be shown in a chart through [ShowLeaderLines](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.Implementation.Charts.ChartDataLabelsImpl.html#Syncfusion_XlsIO_Implementation_Charts_ChartDataLabelsImpl_ShowLeaderLines) API which can be set to all data labels by enabling the leader lines for [DefaultDataPoint](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.Implementation.Charts.ChartDataPointsCollection.html#Syncfusion_XlsIO_Implementation_Charts_ChartDataPointsCollection_DefaultDataPoint). + +The following code illustrates how to enable the leader lines for all data labels in the chart. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} + +// Enable the leader lines in Chart. +chart.Series[0].DataPoints.DefaultDataPoint.DataLabels.ShowLeaderLines = true; + +{% endhighlight %} +{% highlight c# tabtitle="C# [Windows-specific]" %} + +// Enable the leader lines in Chart. +chart.Series[0].DataPoints.DefaultDataPoint.DataLabels.ShowLeaderLines = true; + +{% endhighlight %} +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} + +' Enable the leader lines in Chart. +chart.Series[0].DataPoints.DefaultDataPoint.DataLabels.ShowLeaderLines = true; + +{% endhighlight %} +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Charts/Show-Leader-Lines/.NET). + ## See Also * [How to change text of data labels for Chart in Presentation](https://support.syncfusion.com/kb/article/13828/how-to-change-the-text-in-data-labels-inside-a-chart-in-presentation-using-c-in-aspnet-core) From 5e0f70e49d259dac626d861ee6e2358ab9f39bc3 Mon Sep 17 00:00:00 2001 From: Mohanaselvam Jothi <92796735+MohanaselvamJothi@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:47:34 +0530 Subject: [PATCH 2/2] Update Chart-Data-Labels.md --- File-Formats/Presentation/Charts/Chart-Data-Labels.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File-Formats/Presentation/Charts/Chart-Data-Labels.md b/File-Formats/Presentation/Charts/Chart-Data-Labels.md index 62a5de5be..b1db79e99 100644 --- a/File-Formats/Presentation/Charts/Chart-Data-Labels.md +++ b/File-Formats/Presentation/Charts/Chart-Data-Labels.md @@ -6,7 +6,7 @@ control: PowerPoint documentation: UG --- -# Chart Data Labels +# Chart Data Labels in PowerPoint Data Labels on a chart make it easier to understand. They show important information about the lines or points on the chart. Using Presentation, you can **customize the data labels in the chart**.