I am using ICEfaces 3.2. I want to know how to change the color of the ICEfaces ace pieChart slices.
My JSF code is as below:
<ace:chart id="chart" value="#{piechartbean.pieData}"
animated="true" legend="true"
widgetVar="pieChart"/>
I want to provide my own color for each slices of the pie chart. My bean code is as below:
public List<SectorSeries> getPieData() {
SectorSeries series = new SectorSeries();
series.add("PENDING", map.get("PENDING"));
series.add("SUBMITTED", map.get("SUBMITTED"));
series.add("ARCHIVED", map.get("ARCHIVED"));
series.setShowDataLabels(true);
series.setSliceMargin(4);
series.setFill(true);
pieData.add(series) ;
return pieData;
}
seriesColors
attribute in<ace:chart
like in primefaces (after all they did took primefaces library as is...) primefaces.org/docs/vdl/3.4/primefaces-p/pieChart.html – Daniel