Set the Shape Type of Data Labels of Chart with Golang via C++

Possible Usage Scenarios

You can change the shape type of data labels of the chart using the DataLabels.ShapeType property. It takes the value of the DataLabelShapeType enumeration and changes the shape type of data labels accordingly. Some of its values are:

DataLabelShapeType.BentLineCallout  
DataLabelShapeType.DownArrowCallout  
DataLabelShapeType.Ellipse  
DataLabelShapeType.LineCallout  
DataLabelShapeType.Rect  
etc.

Set the Shape Type of Data Labels of Chart

The following sample code changes the shape type of data labels of the chart to DataLabelShapeType.WedgeEllipseCallout. Please see the sample Excel file used in this code and the output Excel file generated by it. The screenshot shows the effect of the code on the sample Excel file.

todo:image_alt_text

Sample Code