Hello,
Hi Brett,
Hi Mudassir,
Hi Brett,
I have observed the requirements shared by you and like to share that setting callouts for data labels of Pie chart is a new feature that comes with PowerPoint 2013. This is at present unavailable in Aspose.Slides and an issue with ID SLIDESNET-37152 has been created as new feature request to further investigate the possibility of implementing the requested support. This thread has been linked with the issue so that you may be automatically notified once the support will be available.
We are sorry for your inconvenience,
The issues you have found earlier (filed as SLIDESNET-37152) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hello,
Hi Brett,
I have observed your comments and suggest you to please try using the following sample code on your end to serve the purpose. I hope this will be helpful. Please share, if I may help you further in this regard.
using (Presentation pres = new Presentation())
{
IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Pie, 50, 50, 500, 400);
chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowValue = true;
chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowLabelAsDataCallout = true;
chart.ChartData.Series[0].Labels[2].DataLabelFormat.ShowLabelAsDataCallout = false;
pres.Save(pptxFileName, SaveFormat.Pptx);
}
Many Thanks,
Hi Mudassir,
Hi Brett,
public static void TestChartLabel(){String path = @“C:\Presentations”;using (Presentation pres = new Presentation(path + “TemplateChart.pptx”)){IChart chart = (IChart)pres.Slides[0].Shapes[0];chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowValue = true;chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowLabelAsDataCallout =true;chart.ChartData.Series[0].Labels[2].DataLabelFormat.ShowLabelAsDataCallout =false;pres.Save(path+“GeneratedChart2.pptx”, SaveFormat.Pptx);}}