JARCH SHOWCASE
JARCH SHOWCASE
Charts - Interactive When a series data is clicked, information can be passed to a backing bean using itemSelect ajax behavior.
<a:form>
    <a:growl id="growl" showDetail="true" />

    <h:panelGrid columns="2" columnClasses="left,right" style="width:100%">
        <a:chart type="pie" model="#{chartView.pieModel1}" style="width:400px;height:300px">
            <a:ajax event="itemSelect" listener="#{chartView.itemSelect}" update="growl" />
        </a:chart>

        <a:chart type="bar" model="#{chartView.barModel}" style="width:400px;height:300px">
            <a:ajax event="itemSelect" listener="#{chartView.itemSelect}" update="growl" />
        </a:chart>
    </h:panelGrid>

</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.