data.add(hits);
return data;
}
private DefaultIntervalCategoryDataset getDefaultIntervalCategoryDataset() throws ApsSystemException {
DefaultIntervalCategoryDataset ds = null;
try {
Map<String, Integer> result = this.getResultset();
List data = this.getDataFromResultset(result);
String[] categories = (String[]) data.get(0);
Integer[] hits = (Integer[]) data.get(1);
final Integer[][] startValues = new Integer[_seriesNames.length][categories.length];
final Integer[][] endValues = new Integer[_seriesNames.length][categories.length];
int i;
for (int series = 0; series < _seriesNames.length; series++) {
for ( i = 0; i < categories.length; i++) {
startValues[series][i] = new Integer(0);
endValues[series][i] = hits[i];
}
}
ds = new DefaultIntervalCategoryDataset(_seriesNames, categories, startValues, endValues);
} catch (Throwable e) {
throw new ApsSystemException("An error occurred getting statistics data ", e);
}
return ds;
}