PieChart styling

UI Components for JSF
Post Reply
Raubvogel87
Posts: 12
Joined: 03 Nov 2011, 10:02

03 Nov 2011, 10:07

Hi,

I'm new to PrimeFaces and wondered if there is a reference for styling a pie chart component. The guide provides only one example:

var piechartStyle = {
padding : 20,
legend : {
display : "right",
spacing : 10
}
};

So, where can I find more information on what to specify here?

Thanks for any help,
Steffen
PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7

Raubvogel87
Posts: 12
Joined: 03 Nov 2011, 10:02

03 Nov 2011, 10:31

For instance, I want to change the height of the (flash-)component. Changing height of container via CSS doesn't have an effect.
PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7

Raubvogel87
Posts: 12
Joined: 03 Nov 2011, 10:02

03 Nov 2011, 11:18

Ok, I overlook the "width" and "height" attribute which work fine. But I'm still interested in a reference for the styling possibilities, e.g. how to change the color of the pie pieces? Same would be nice for the line chart which I'm using also.

Best regards,
Steffen
PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7

User avatar
leventgny
Posts: 238
Joined: 24 May 2011, 16:49
Contact:

03 Nov 2011, 15:49

Try with using seriesColors like;
http://www.primefaces.org/showcase-labs ... eChart.jsf

Then, updated documentation for 3.0labs will be available soon.
PrimeFaces Team Member

Raubvogel87
Posts: 12
Joined: 03 Nov 2011, 10:02

04 Nov 2011, 10:32

Ok, I'm migrating to 3.0M4. Thanks.
PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7

Jgomes
Posts: 125
Joined: 13 Oct 2011, 11:30

07 Nov 2011, 13:10

I can change the color of piechart data with seriesColors, but How can I change the background of the charts?
Primefaces 5.2/5.3
Mojarra 2.1.29
Jboss AS7-WildFly 8

GuitarBrasil
Posts: 221
Joined: 04 Aug 2011, 22:00

14 Sep 2012, 20:14

I'm not able to change it as well
PrimeFaces 3.5 + JSF 2.1.4 + Tomcat 7.X

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests