HSSFChart chart = (HSSFChart) chartXes.get(0).getChartInfo();
assertEquals("2003-2006 Income Summary", chart.getChartTitle());
HSSFSeries[] series = chart.getSeries();
assertEquals(3, series.length);
HSSFSeries ser = series[0];
assertEquals(4, ser.getNumValues());
assertEquals("Total Revenues", ser.getSeriesTitle());
ser = series[1];
assertEquals(4, ser.getNumValues());
assertEquals("Total Expenses", ser.getSeriesTitle());
ser = series[2];
assertEquals(4, ser.getNumValues());
assertEquals("Profit/Loss", ser.getSeriesTitle());
for(int j = 0; j < series.length; ++j) {
System.out.println("--------"+j);
System.out.println("ser.getValueType():"+ser.getValueType());
System.out.println("ser.getDataCategoryLabels():"+ser.getDataCategoryLabels());
System.out.println("ser.getDataName():"+ser.getDataName());
System.out.println("ser.getDataSecondaryCategoryLabels():"+ser.getDataSecondaryCategoryLabels());
System.out.println("ser.getDataValues():"+ser.getDataValues());
System.out.println("ser.getSeries():"+ser.getSeries());
}
}