Display % Value of Each Slice Inside Pie Chart Slices – Jaspersoft Studio

Home  >>  Jaspersoft Studio  >>  Display % Value of Each Slice Inside Pie Chart Slices – Jaspersoft Studio

Display % Value of Each Slice Inside Pie Chart Slices – Jaspersoft Studio

10
Jul,2014

2

1) Create a Report using the same Query we used in my blog “Display Total On Each Column Of Stacked Bar In jaspersoft (Direct Approach)”

2) Delete all Bands except Title and Summary.

3) Drag and Drop Chart from the Palette and select Pie Chart.

4) Use the Value and Key parameter as follows.

Image1

5) Preview teh Report and the Report should look like this.

Image2

6) Now to Display the % Value instead of the Country Name (Outside the Slice) Then Please check the Blog “Display % Value in Pie Chart – Jaspersoft Studio”

7) To display the % Value inside the slice, we will use a “Customizer Class”. The jar file is free for your download. Please download this “.JAR” and add the Jar file into your report as explained in “Customizer Class Blog”

8) Then When you preview the Report. it will look like below.

Image3

2 Comments so far:

  1. Okan says:

    Hi,
    I can’t open or use the JAR file you provided. Would that be possible to give the raw code? Thank you.

    • rajeshsirsikar says:

      Hi Okan,

      Were you able to download teh JAR File. If yes then you need not open it,just place it in teh jaspersoft class path and the customized class will be available for your use.

      Thanks,
      Rajesh S

Leave a Reply

Your email address will not be published. Required fields are marked *