We are using PrimeFaces for making a statistics software and we have an issue with a pie chart. We want to have a value with decimal places. So we don't want percent or a rounded number, but a number with 2 decimal places. From our database we get a BigDecimal number with 4 decimal places, for example we add 2 data results to our pie model. 5.6223 and 4.1223 and we set dataFormat="value". When we hover the slices of the pie in our view we get 6 and 4.
pitaPVC.setDataFormat("value");
<p:chart id="pitaPVC" type="pie"
rendered="#{statistickoPoredjenjePoUslugamaController.fgPVC}"
model="#{statistickoPoredjenjePoUslugamaController.pitaPVC}" />
</b:column>
Is there a way to set the value to be with certain number of decimal places
We are using PrimeFaces 7.0