// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); IShape shape = worksheet.getShapes().addChart(ChartType.LineMarkers, 250, 20, 360, 230); worksheet.getRange("A1:B6").setValue(new Object[][]{ {null, "S1"}, {"Item1", 10}, {"Item2", -51}, {"Item3", 52}, {"Item4", 22}, {"Item5", 40} }); shape.getChart().getSeriesCollection().add(worksheet.getRange("A1:B6"), RowCol.Columns, true, true); ISeries series1 = shape.getChart().getSeriesCollection().get(0); //config line markers style series1.setMarkerStyle(MarkerStyle.Square); series1.setMarkerSize(10); // Save to an excel file workbook.save("ConfigMarkerStyle.xlsx");