DRValue drValue = (DRValue) recordGroup.totals().objectForKey(attribTotalKey);
if(drValue != null) {
value = drValue.total();
}
} else {
value = ((Number) recordGroup.rawRecordList().valueForKeyPath(recordGroupTotalToShow())).doubleValue();
}
if(dataset instanceof CategoryDataset) {
((DefaultCategoryDataset)dataset).setValue(value, label, o.toString());
} else if (dataset instanceof PieDataset) {
((DefaultPieDataset) dataset).setValue(label, value);