January 2013
Intermediate to advanced
328 pages
7h 14m
English
The donutChart component renders a multiseries of pie charts, like a combination, in one plotting.
A simple definition for a donut(doughnut) chart to display stock exchange options as three circles would be as follows:
<p:donutChart value="#{donutChartController.model}" style="height:250px" title="Stocks by Year" />This output will be rendered as follows:

The model that binds to the component should be an instance of org.primefaces.model.chart.DonutChartModel.
DonutChartModel model = new DonutChartModel(); Map<String, Number> circle1 = new LinkedHashMap<String, Number>(); circle1.put("APPL", 150); circle1.put("IBM", ...Read now
Unlock full access