We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Slides pie chart data labels

Hello,

I am using Aspose Slides version 16.1.0.0 to create a pie chart on the fly. Is there anyway to set custom value for data labels? I couldnt find a way to do it in the library. Within PPT, you can do this by selecting “Value from Cells” and select a range and it will be displayed in the chart. Attaching a screenshot of how to achieve that in PPT. Please let me know.

image.png (55.8 KB)

@rw3,

I have observed your requirements and like to share that you can set the chart data labels from chart workbook and can also set labels with custom text as well. I suggest you to please visit following documentation links.

I dont see the ShowLabelValueFromCell attribute in version 16.1.0.0. Is that available in recent releases?

series[0].Labels.DefaultDataLabelFormat.ShowLabelValueFromCell = true;

@rw3,

Yes, it is available in latest versions and you may please use latest Aspose.Slides for .NET 18.7 on your end.

Great, thank you!