Pie Chart

PieChart is created with a PieChartModel.

Source

<p:chart type="pie" model="#{chartBean.pieModel1}" style="width:400px;height:300px" />
            
<p:chart type="pie" model="#{chartBean.pieModel2}" style="width:400px;height:300px" />