Resize Chart's Data Label Shape To Fit Text with Golang via C++
Contents
[
Hide
]
Excel application provides the Resize shape to fit text option for Chart’s Data Labels in order to increase the size of the shape so that the text fits inside it.
How to Resize Chart’s Data Label Shape To Fit Text in Microsoft Excel
This option can be accessed on the Excel interface by selecting any of the data labels on the chart. Right‑click and select the Format Data Labels menu. On the Size & Properties tab, expand Alignment to reveal the related properties, including the Resize shape to fit text option.
How to Resize Chart’s Data Label Shape To Fit Text Using Aspose.Cells for C++
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.IsResizeShapeToFitText property. The following piece of code shows a simple usage scenario of the DataLabels.IsResizeShapeToFitText property.