- Home
- Forum
- ASP.NET Core - EJ 2
- Showing DataPoint Labels with Leader Lines for Presentation Charts
Showing DataPoint Labels with Leader Lines for Presentation Charts
Hello, how can I create a donut chart similar to the one below with data points labels outside and leader lines?

I've been able to create the labels outside positioning for a pie chart, but leader lines don't show.

I've been able to create the labels outside positioning for a pie chart, but leader lines don't show.
I'm using the following Syncfusion package for generating a Powerpoint presentation: https://www.nuget.org/packages/Syncfusion.Presentation.Net.Core/
SIGN IN To post a reply.
2 Replies
1 reply marked as answer
SB
Suriya Balamurugan
Syncfusion Team
October 8, 2020 04:26 PM UTC
Hi Yasmin,
Thank you for contacting Syncfusion support.
how can I create a donut chart similar to the one below with data points labels outside and leader lines?
Microsoft PowerPoint application not providing support to directly set the data label outside and leader lines for doughnut chart. Syncfusion Essential PowerPoint does the same as Microsoft PowerPoint.
To meet your requirement, we suggest you to use manual layout to set the data label outside and leader lines in doughnut chart. Based on this, we have prepared the sample application from our side. It can be downloaded from the following link:
https://www.syncfusion.com/downloads/support/forum/158402/ze/Sample839319483
I've been able to create the labels outside positioning for a pie chart, but leader lines don't show.
Currently, we are checking this with high priority and will update you with more details on 9th October 2020.
Please let us know if you have any other questions.
Regards,
Suriya Balamurugan.
Thank you for contacting Syncfusion support.
how can I create a donut chart similar to the one below with data points labels outside and leader lines?
Microsoft PowerPoint application not providing support to directly set the data label outside and leader lines for doughnut chart. Syncfusion Essential PowerPoint does the same as Microsoft PowerPoint.
To meet your requirement, we suggest you to use manual layout to set the data label outside and leader lines in doughnut chart. Based on this, we have prepared the sample application from our side. It can be downloaded from the following link:
https://www.syncfusion.com/downloads/support/forum/158402/ze/Sample839319483
I've been able to create the labels outside positioning for a pie chart, but leader lines don't show.
Currently, we are checking this with high priority and will update you with more details on 9th October 2020.
Please let us know if you have any other questions.
Regards,
Suriya Balamurugan.
RM
Ramaraj Marimuthu
Syncfusion Team
October 9, 2020 01:59 PM UTC
Hi Yasmin,
Thank you for your patience.
Regarding leader line missing in pie chart:
A Leader Line is only helpful, when you have placed a data label away from a data point. So, it works only if we place the data label away from data point.
Please use the below code snippet to sets a leader line,
Thank you for your patience.
Regarding leader line missing in pie chart:
A Leader Line is only helpful, when you have placed a data label away from a data point. So, it works only if we place the data label away from data point.
Please use the below code snippet to sets a leader line,
|
//Get the serie data labels
IOfficeChartDataLabels dataLabels = chart.Series[0].DataPoints.DefaultDataPoint.DataLabels;
//Set the leader lines
dataLabels.ShowLeaderLines = true;
dataLabels.Position = OfficeDataLabelPosition.Outside;
//Set Manual Layout position to long
chart.Series[0].DataPoints[0].DataLabels.Layout.ManualLayout.Left = 0.077142857142857138;
chart.Series[0].DataPoints[0].DataLabels.Layout.ManualLayout.Top = -0.05;
chart.Series[0].DataPoints[1].DataLabels.Layout.ManualLayout.Left = 0.07857142857142857;
chart.Series[0].DataPoints[1].DataLabels.Layout.ManualLayout.Top = 0.073999999999999858;
chart.Series[0].DataPoints[2].DataLabels.Layout.ManualLayout.Left = -0.10857142857142857;
chart.Series[0].DataPoints[2].DataLabels.Layout.ManualLayout.Top = -0.048; |
Please find the below workable sample,
https://www.syncfusion.com/downloads/support/forum/158402/ze/Sample1944384285
Please let us know if you need any further assistances in this.
Regards,
Ramaraj Marimuthu
Regards,
Ramaraj Marimuthu
Marked as answer
SIGN IN To post a reply.
- 2 Replies
- 3 Participants
- Marked answer
-
YE Yasmin Eldokany
- Oct 5, 2020 11:45 AM UTC
- Oct 9, 2020 01:59 PM UTC