Though this works for line and pie charts; but not for any other.
Thanks for your posting and using Aspose.Cells for Java.
We were able to replicate your mentioned issue with the following given code using your source file with the latest version:
for Java v188.8.131.52
I have attached the output chart generated by this code and the screenshot highlighting this issue for your reference.
We have logged this issue in our database. We will look into it and fix the issue. Once the issue is fixed or we have some other update for you, we will let you know asap.
This issue has been logged as CELLSJAVA-40342.
String filePath = “F:\Shak-Data-RW\Downloads\Input.xlsx”;
Workbook workbook = new Workbook(filePath);
ChartCollection charts = workbook.getWorksheets().get(0).getCharts();
Chart chart = charts.get(charts.add(ChartType.PYRAMID, 0, 0, 15, 8));
Series series = chart.getNSeries().get(chart.getNSeries().add("=Sheet1!$K5:N5", false));
DataLabels dataLabels = series.getDataLabels();
workbook.save(filePath + “.out.xlsx”);