i have a problem about the series's color, the slides is version 6.7.1
the result have 2.One is not clear default data,the other is clear default data.Why the color not correct???
PresentationEx pres = new PresentationEx();
SlideEx sld = pres.getSlides().get_Item(0);
ChartEx chart = sld.getShapes().addChart(ChartTypeEx.ClusteredColumn, 50, 120, 430, 360);
int defaultWorksheetIndex = 0;
ChartDataCellFactory fact = chart.getChartData().getChartDataCellFactory();
chart.getChartData().getSeries().clear();
chart.getChartData().getCategories().clear();
int categoriesCount = 6;
for(int i=1; i<=categoriesCount; i++){
int index = chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, i, 0, "Q." + i));
}
int serierCount = 5;
for(int i=1; i<=serierCount; i++){
int index = chart.getChartData().getSeries().add(fact.getCell(defaultWorksheetIndex, 0, i, "answer" + i), chart.getType());
ChartSeriesEx series = chart.getChartData().getSeries().getChartSeries(index);
for(int j=1; j<=categoriesCount; j++){
series.getValues().add(fact.getCell(defaultWorksheetIndex, j, i, (int)(Math.random()*1000)));
}
}
pres.write("E:\\AsposeChart.pptx");