Hi,
OpenXml document states that the order element (its qualified name is c:order) specifies the order of the series in the collection
https://msdn.microsoft.com/en-us/library/documentformat.openxml.drawing.charts.order(v=office.14).aspx
As shown on screen shot in attachment order of series is the following:
1. red
2. green
3. blue
The order property of the series has correct value in chart1.xml file of series_order_bug.xlsx document:
blue
...
red
...
green
...
In Aspose.Cells version 8.3.2 series in SeriesCollection are ordered by the order property value and we used the following code:
import com.aspose.cells.Chart;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import org.junit.Test;
public class TestChart {
@Test
public void testChartSeriesOrder() throws Exception {
Workbook workbook = new Workbook("C:\\temp\\series_order_bug.xlsx");
Worksheet sheet = workbook.getWorksheets().get(0);
Chart chart = sheet.getCharts().get(0);
for (int i = 0; i < chart.getNSeries().getCount(); i++) {
System.out.println(chart.getNSeries().get(i).getDisplayName());
}
}
}
Output looked as follows:
red
green
blue
However in version 8.6.2 output has wrong order and looks as follows:
blue
red
green
Could you scrutinize the issue and fix this bug?
Thanks.