Pie Chart

PieChart is created with a PieChartModel.

Source

<p:pieChart id="sample" value="#{chartBean.pieModel}" legendPosition="w"
                title="Sample Pie Chart" style="width:400px;height:300px" />

<p:pieChart id="custom" value="#{chartBean.pieModel}" legendPosition="e" fill="false" showDataLabels="true"
                title="Custom Options" style="width:400px;height:300px" sliceMargin="5" diameter="150" />