I am generating a graph usually without problems, only occurs with smaller percentages, showing the 'slice' correctly, but the value of that percentage is not displayed. I tried to make the change of the diameter of the piechart, as I saw that it is possible in xhtml (in the showcase it is done in Java, however the parameter property does not appear to be set for me). Has anyone gone through this, or could you help me? Note: I use Primefaces 3.5.
Here is the code I use and the graphic image:
Java:
this.graficoAteste = new PieChartModel();
...
graficoAteste.set("Sim", 33);
graficoAteste.set("Não", 2);
graficoAteste.set("Parcial", 1);
graficoAteste.set("Não Atestado", 0);
xhtml:
<p:pieChart id="graficoAteste" widgetVar="grafico_pizza"
value="#{graficoAtestePeriodoBean.graficoAteste}"
legendPosition="e" fill="true" showDataLabels="true"
title="#{msg.grafico_ateste_por_periodo}"
style="width:450px;height:350px" sliceMargin="6" diameter="200"
rendered="#{graficoAtestePeriodoBean.graficoAteste != null}" />