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

Free Support Forum - aspose.com

Not able to add Data Label for Points

Hi,

We want to add DataLabel to the chart series. Objects for DataLabel have been created and TextFrameForOverridingText.Text was provided with. However we didn’t found any function which could add the DataLabel object back to Chart Series.

Our charts are plotted with the original values however we would like to display the formatted text using DataLabel. At present we are using the version 15.9 for Aspose.Slides.

Hi,


Thank you for your interest in Aspose.Slides.

I have observed your comments and like to request you to please try using following sample code on your end to display DataLabels and to format them as per your requirements.

IDataLabel lbl = series.DataPoints[0].Label;<o:p></o:p>

lbl.DataLabelFormat.ShowSeriesName = true;

lbl.TextFormat.PortionFormat.FillFormat.FillType = FillType.Solid;

lbl.TextFormat.PortionFormat.FillFormat.SolidFillColor.Color = Color.Red;

lbl.TextFormat.PortionFormat.FontHeight = 20;


I hope this will be helpful. Please share if I may help you further in this regard.

Best Regards,