// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); IShape shape = worksheet.getShapes().addChart(ChartType.ColumnClustered, 250, 20, 360, 230); worksheet.getRange("A1:B5").setValue(new Object[][]{ {null, "S1", "S2"}, {"Item1", -20}, {"Item2", 30}, {"Item3", 50}, {"Item3", 40} }); shape.getChart().getSeriesCollection().add(worksheet.getRange("A1:B5"), RowCol.Columns, true, true); ISeries series1 = shape.getChart().getSeriesCollection().get(0); series1.setHasDataLabels(true); //set series1's all data labels' angle. series1.getDataLabels().setOrientation(45); //set series1's specific data label's angle. series1.getDataLabels().get(2).setOrientation(-45); // Save to an excel file workbook.save("ConfigDataLabelAngle.xlsx");