I created a pie chart. But I cant see the legends of series. The Details are not desplayed. How can i desplay it like demo.. ?
Thank you.
See picture:
Any tips thank you..
Here is code:
Code: Select all
<ui:define name="content">
<h1><h:outputText value="Chart two"/></h1>
<h:form>
<h:panelGrid id="chartsGrid" columns="2" border="0" columnClasses="panelLabelColumn r, panelDataColumn l">
<h:outputText value=": " />
<p:pieChart value="#{accountBeanController.chartValue}" var="testModelClass" categoryField="#{testModelClass.brand}"
dataField="#{testModelClass.amount}"
/>
<h:commandButton id="save" action="/xhtml/account/AccountDetail.xhtml" value="_BACK" />
</h:panelGrid>
</h:form>
</ui:define>