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

Free Support Forum - aspose.com

Is there a way to Autofit Series labels text?

Hi,

I am creating a bar chart and when the size of the bars is small the text inside the bars i.e., the datalabel values appear to overflow. Is there a way to autofit the datalabel values when there is a overflow?

Thanks,
Priya

Hi Priya,

I have observed the requirement shared by you and suggest you to please try using following sample code on your end to serve the purpose. I hope this will be helpful.

label.TextFormat.TextBlockFormat.AutofitType = TextAutofitType.Shape;

Many Thanks,

Autofittype is not available for version 14.8. Do you know which version has this property for the lables.

Hi Priya,

I like to share that requested support has been included in Aspose.Slides 15.5.0. However, I suggest you to please try using latest Aspose.Slides 16.3.0 on your end. Please visit this documentation link for your further kind reference as well.

Many Thanks,