Resize Chart's Data Label Shape To Fit Text

Resize Chart’s Data Label Shape To Fit Text

In order to mimic Excel’s feature of resizing data label shapes to fit the text, the Aspose.Cells APIs have exposed the Boolean type DataLabels.ResizeShapeToFitText property. The following piece of code shows the simple usage scenario of DataLabels.ResizeShapeToFitText property.

The chart looks as follows before executing the code.

todo:image_alt_text

The chart looks as follows after executing the code.

todo:image_alt_text