// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java

//Load source Excel file
Workbook wb = new Workbook("sampleSetShapeTypeOfDataLabelsOfChart.xlsx");

//Access first worksheet
Worksheet ws = wb.getWorksheets().get(0);

//Access first chart
Chart ch = ws.getCharts().get(0);

//Access first series
Series srs = ch.getNSeries().get(0);

//Set the shape type of data labels i.e. Speech Bubble Oval
srs.getDataLabels().setShapeType(DataLabelShapeType.WEDGE_ELLIPSE_CALLOUT);

//Save the output Excel file
wb.save("outputSetShapeTypeOfDataLabelsOfChart.xlsx");