Reporte estadístico con Prime faces y Postgresql

Estoy utilizando PieChartModel para generar un reporte estadistico el problema es que no me reconoce las propiedades de este:
estoy trabajando con primefaces 4.0... podrian ayudarme porfavor ...
graficoPastel.setTitle("Simple Pie");
graficoPastel.setLegendPosition("w");
graficoPastel.setTitle("Custom Pie");
graficoPastel.setLegendPosition("e");
graficoPastel.setFill(false);
graficoPastel.setShowDataLabels(true);
graficoPastel.setDiameter(150)

Comentarios

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.

Re: PieChartModel

 

En PrimeFaces 4.0, colocas esas propiedades directamente en el JSF. Ejemplo:

<p:pieChart value="#{bean.model}"  
            title="Custom Pie"
            legendPosition="e"  
            fill="false"
            showDataLabels="true"
            diameter="150"/>

Para más información, consulta la guía correspondiente a la versión: http://www.primefaces.org/documentation.

~~~

Imagen de joseguru

esto te puede ayudar

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<p:lineChart id="filled" value="#{chartBean.categoryModel}" legendPosition="ne" fill="true" title="Filled" style="height:300px;margin-top:20px" xaxisLabel="Year" yaxisLabel="Births" />
</h:body>
</html>
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package ManagedBean;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.chart.CartesianChartModel;
import org.primefaces.model.chart.ChartSeries;

/**
*
* @author kaaf
*/

@ManagedBean
@RequestScoped
public class ChartBean implements Serializable {

private CartesianChartModel categoryModel;

public ChartBean() {
createCategoryModel();
}

public CartesianChartModel getCategoryModel() {
return categoryModel;
}

private void createCategoryModel() {
categoryModel = new CartesianChartModel();

ChartSeries boys = new ChartSeries();
boys.setLabel("Boys");

boys.set("2004", 120);
boys.set("2005", 140);
boys.set("2006", 160);
boys.set("2007", 180);
boys.set("2008", 200);

ChartSeries girls = new ChartSeries();
girls.setLabel("Girls");

girls.set("2004", 100);
girls.set("2005", 100);
girls.set("2006", 100);
girls.set("2007", 100);
girls.set("2008", 100);

categoryModel.addSeries(boys);
categoryModel.addSeries(girls);
}
}

esto te puede ayudar---> referencia--> http://todoenjava.blogspot.mx/2013/08/jsf-primeface-chart.html