public List getSeries() {
return series;
}
public JRDesignChartDataset transform(DynamicJasperDesign design, String name, JRDesignGroup group, JRDesignGroup parentGroup, Map vars) {
JRDesignPieDataset data = new JRDesignPieDataset(null);
for (Iterator iterator = series.iterator(); iterator.hasNext();) {
JRDesignPieSeries serie = new JRDesignPieSeries();
AbstractColumn column = (AbstractColumn) iterator.next();
//And use it as value for each bar
JRDesignExpression varExp = getExpressionFromVariable((JRDesignVariable) vars.get(column));
serie.setValueExpression(varExp);
//The key for each bar
JRExpression exp2 = group.getExpression();
serie.setKeyExpression(exp2);
data.addPieSeries(serie);
}
setResetStyle(data, group, parentGroup);
return data;