Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

PrimeFaces PieChart

It is a type of graph in which a circle is divided into sectors and each sector represent some statistic. It is a way to represent statistical data graphically.

The <p:chart> component is used to create chart. Here, we need to set type = "pie" to create pie chart. It uses all the attributes of chart component that have discussed in previous chapter.

Example

Here, in the following example, we are implementing <p:chart> component to create pie chart. This example contains the following files.

JSF File

// pieChart.xhtml

ManagedBean

// PieChart.java

Output:

PrimeFaces PieChart 1
Next TopicPrimeFaces Growl





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA