2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: jondd - jondd Chart Customizer class 2005-09-15 12:44 I'm trying to turn off the labels for a pie chart and I'm using the JRChartCustomizer interface. It compiles fine and I've got my "customizer" class defined in JRXML and it is in the class path but I get a run time error: Error filling print... net.sf.jasperreports.engine.JRRuntimeException: com.foobar.utils.ReportChartCustomizer at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:253) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getChart(JRFillObjectFactory.java:464) at net.sf.jasperreports.engine.base.JRBaseChart.getCopy(JRBaseChart.java:430) at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:87) at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:113) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:287) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:580) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:113) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:625) at java.lang.Thread.run(Unknown Source) Has anyone has success using the customizer class with charts? TIA By: Teodor Danciu - teodord RE: Chart Customizer class 2005-09-16 07:08 Hi, Make sure your chart customizer class is available in the classpath at runtime and that it has an empty constructor because we are instantiating it using Reflection. I hope this helps. Teodor By: Teodor Danciu - teodord RE: Chart Customizer class 2005-11-17 05:34 Hi, After further investigating this we found out there is a small bug in our latest release and iReport and the other tools that use JasperReports are not able to instantiate the chart customizer class. This has been fixed in the CVS and will be part of the next release. Thank you, Teodor By: bill - rx7haze RE: Chart Customizer class 2006-05-30 06:40 Does this bug affect v1.2.2? By: Teodor Danciu - teodord RE: Chart Customizer class 2006-05-30 06:43 No, it was fixed. Teodor Link to comment Share on other sites More sharing options...
atanupanda Posted February 6, 2007 Share Posted February 6, 2007 HiThis is Atanu. I am very new in ireport and also in java environment. In the ireport I have designed a template .like this.please look on attach file size=150]C:Documents and SettingsAtanuMy Documentsgraph.jpegNow I want to plot a line graph on the basis of the each data like t1 t2 ---t5 and lcl, ucl, actual value for each row.That I have done. Now my problem is that I have to change the color of points of t1 t2 ---t5 on the basis of Lcl and Ucl . If the value of t1 ,or t2 or ----t5 are between Ucl and Lcl the color will be blue. And if it out side of Lcl and Ucl then it will be red..I want the following figure. Where the upper bold line is Ucl and lower bold line isLcl size=150]C:Documents and SettingsAtanuMy Documentsdata.jpeg Actually I have got a information that for that I have to write a customizer class for chart. Also I have write it . Code:Now this customize class ok running successfully with creating jar files.Now I want to create a logic to check the value of t1 t2 t3 t5 with respect to UCL and LCL. How can I fetch data from report.Or is there any other way to do this.Is there any way to pass value from iReport to customizer class ? What should I do. Please please help me. It’s urget for me. Any help would be greatly appreciated. Thanks in advance. [file name=query-37ab101e3a539a71be9c962f72749d92.doc size=49152]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/query-37ab101e3a539a71be9c962f72749d92.doc[/file] [file name=query-b7c52e5a18c371f334d469163efc4611.doc size=49152]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/query-b7c52e5a18c371f334d469163efc4611.doc[/file] size=159]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/graph-5e9a6eb65c9a8bfc7aa0cb49268906ef.JPG 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