arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
GChart
The GChart component needs a GChartModel object that can be created with a GChartModelBuilder. It's also possible to add an ajax listener on the "select" event. The event contains a reference to a JSONArray object with the information about the selected rows.
MushroomsOnionsType
Source

<script src="https://www.gstatic.com/charts/loader.js"></script>
<p:messages id="messages">
   <p:autoUpdate />
</p:messages>
<p:outputPanel id="container" layout="block">
    <h:panelGrid columns="4">
        <h:outputText value="Mushrooms" />
        <h:outputText value="Onions" />
        <h:outputText value="Type" />
        <h:panelGroup/>
        <p:inputText converter="javax.faces.Integer" value="#{basicGChartController.mushrooms}" />
        <p:inputText converter="javax.faces.Integer" value="#{basicGChartController.onions}" />
        <h:selectOneMenu value="#{basicGChartController.chartType}">
            <f:selectItems value="#{basicGChartController.types}"/>
        </h:selectOneMenu>
        <p:commandButton value="Generate" update="container" action="#{basicGChartController.generateModel}" />
    </h:panelGrid>

    <pe:gChart value="#{basicGChartController.chart}" title="How Much Pizza I Ate Last Night">
        <p:ajax listener="#{basicGChartController.onSelect}"/>
    </pe:gChart>
</p:outputPanel>
            
Components and more
Documentation pe:
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.13,PrimeFaces Extensions: 15.0.14-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-02-23 00:32