Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

primefaces PieChartModel's Data Display

Tags:

jsf

primefaces

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?

like image 768
William Avatar asked Jun 15 '26 05:06

William


1 Answers

dataFormat : Defines data information type on highlighter or slices. Default is percent.

just set the dataFormat="value"

like this

<p:pieChart dataFormat="value" ...
like image 152
Daniel Avatar answered Jun 17 '26 11:06

Daniel