anupp1983 Posted August 4, 2011 Share Posted August 4, 2011 Hi, I am using jasper report4.0.1.<pie3DPlot labelFormat="{2}" > <plot/> </pie3DPlotUsing 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 AdvanceAnup Link to comment Share on other sites More sharing options...
szaharia Posted August 5, 2011 Share Posted August 5, 2011 Hi,Use a chart customizer class with this customize() method.HTH,sanda Code: Post Edited by shertage at 08/05/2011 13:37 Link to comment Share on other sites More sharing options...
anupp1983 Posted August 8, 2011 Author Share Posted August 8, 2011 Thanks ,,I have Resolved the issue...But I dont want to create Jar File.So without creating jar fileI 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); } ThanksAnup Post Edited by anupp1983 at 08/09/2011 06:00 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now