Jump to content
We've recently updated our Privacy Statement, available here ×

how to show percentage decimal value in pie chart


anupp1983

Recommended Posts

Hi,

 I am using jasper report4.0.1.

<pie3DPlot labelFormat="{2}" >
     <plot/>
    </pie3DPlot

Using this i can display only decimal values.....
Like 20% 55%..........

I want to display output in pie chart like 12.25%, 55.30%, 0.05%.........

 I am also attaching JRXML and JPEG file also.

plz Check it my jrxml where is exactly i am missing...In pie chart..

Thanks in Advance

Anup

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thanks ,,I have Resolved the issue...

But I dont want to create Jar File.So without creating jar file

I want to use parameter  Report_Format_Factory .Is any idea how to use this one..

public void customize(JFreeChart chart, JRChart jasperChart)
   {
     PiePlot3D piePlot3D = (PiePlot3D) chart.getPlot();
     ((StandardPieSectionLabelGenerator)piePlot3D.getLabelGenerator()).getPercentFormat().setMaximumFractionDigits(2);
   }

 

Thanks

Anup

 



Post Edited by anupp1983 at 08/09/2011 06:00
Link to comment
Share on other sites

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...