[SOLVED] Details of the Pie Chart (PrimeFace2)

UI Components for JSF
Post Reply
Tuvshin09
Posts: 93
Joined: 19 Feb 2010, 11:59

22 Feb 2010, 16:16

Hello
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:
Image
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>
Last edited by Tuvshin09 on 28 Feb 2011, 16:41, edited 1 time in total.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Feb 2010, 23:23

You need to add chart style, please see online example and user's guide for more information.

Tuvshin09
Posts: 93
Joined: 19 Feb 2010, 11:59

25 Feb 2010, 11:24

Hi cagatay.civici
Thank you very much :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 59 guests