Jump to content
Changes to the Jaspersoft community edition download ×

Showing percentage in pie chart


2005 IR Help

Recommended Posts

By: mks - mksusa

Showing percentage in pie chart

2005-06-25 16:13

Is there a way to show % values inside each pie of a pie chart ?

 

Lets say I have 3 slices in a pie whose values are 10 , 20 and 30. I need to show 10,20 and 30 as tool tips of the slices and want to show 20%,30%,50% inside the pie slices.

 

Help in this is greately appreciated.

Link to comment
Share on other sites

  • 4 months later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...

If you are using iReport 3.5.0 there is a lableFormat and legendLabelFormat properties in the pie plot set of properties (in the property sheet).

Set the format to:

{0} {2}

This is a special syntax for labels where the {n} placeholders have that meaning:

{0} is the key (usually used as lable)
{1} is the value
{2} is the percentage

Giulio

Link to comment
Share on other sites

  • 2 years later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...