Not able to add Data Label for Points


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.


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;

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,