I am new to primefaces.When I use PieChartModel then it displays data in percentage.
For instance my data is labors=4 and administrator=6 .It will show a pie chart which displays 60% and 40% while I want it to display 6 and 4 on the chart.
Is there a way so we can do like this?
dataFormat : Defines data information type on highlighter or slices. Default is percent.
just set the dataFormat="value"
like this
<p:pieChart dataFormat="value" ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With