Version: 14.9.0.
Starting a category name with a space followed by a digit results in a corrupted document. The following code will reproduce the problem in PowerPoint 2010. I have attached the document.
public static void main(String[] args) {
final Presentation pres = new Presentation();
final IChart c = pres.getSlides()
.get_Item(0)
.getShapes()
.addChart(
ChartType.Line,
0, 0, 500, 500);
final IChartData d = c.getChartData();
d.getCategories().clear();
d.getSeries().clear();
final IChartDataWorkbook wb = d.getChartDataWorkbook();
wb.clear(0);
d.getSeries().add(
wb.getCell(0, 0, 1, “Series 1”), c.getType());
d.getCategories().add(
wb.getCell(0, 1, 0, " 1"));
d.getSeries().get_Item(0).getDataPoints().addDataPointForLineSeries(
wb.getCell(0, 1, 1, 10));
pres.save(“D:/test.pptx”, SaveFormat.Pptx);
}