mkeym Posted June 26, 2010 Share Posted June 26, 2010 Hey together,I have tried to generate TimeSeriesChart in JasperReports but i get this error: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.setChartTheme(Lorg/jfree/chart/ChartTheme;)V Does somebody have a solution for my problem?GreatsCode:<field name="DESCRIPTION" class="java.lang.String" /><field name="HALFHOUR" class="java.lang.String" /><field name="VALUEA" class="java.lang.Double" /><variable name="TIME" class="java.util.Date"><variableExpression><![CDATA[new Date()]]></variableExpression><initialValueExpression><![CDATA[new SimpleDateFormat("hh:mm").parse("06:00")]]></initialValueExpression></variable>----<timeSeriesChart> <chart evaluationTime="Report"> <reportElement x="0" y="0" width="555" height="350" /> </chart> <timeSeriesDataset timePeriod="Hour"> <timeSeries> <seriesExpression><![CDATA[$F{DESCRIPTION}]]></seriesExpression> <timePeriodExpression><![CDATA[$V{TIME}]]></timePeriodExpression> <valueExpression><![CDATA[$F{VALUEA}]]></valueExpression> </timeSeries> </timeSeriesDataset> <timeSeriesPlot> <plot backcolor="#FFFFFF"/> </timeSeriesPlot></timeSeriesChart> Link to comment Share on other sites More sharing options...
thangalin Posted June 29, 2010 Share Posted June 29, 2010 Remove the chart theme you have assigned. See if that helps. If it does, make sure that the CLASSPATH includes a reference to the JAR file that has the theme you want to use. Link to comment Share on other sites More sharing options...
mkeym Posted July 1, 2010 Author Share Posted July 1, 2010 Hey,i dont know where does the chart theme come from. I have never assigned it.The Classpath references to the jfreechart jar file. But i have no idea from where i get the chart theme.Can somebody help me? Link to comment Share on other sites More sharing options...
mkeym Posted July 1, 2010 Author Share Posted July 1, 2010 When i use the same code in ireport the chart will create.Can somebody give me an example how to create an TimeSeriesChart in JasperReports Eclipse-Plugin?I think my java code is correct because with the same code but another jrxml file i can generate dynamical text reports.I hope somebody can help me.I need it urgently /tools/fckeditor/editor/images/smiley/msn/sad_smile.gifPost Edited by mkeym at 07/01/2010 12:18 Link to comment Share on other sites More sharing options...
lucianc Posted July 2, 2010 Share Posted July 2, 2010 mkeymWrote: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.setChartTheme(Lorg/jfree/chart/ChartTheme;)V You are using a JFreeChart version which is not compatible with the JasperReports version from your application.Download the JR package for the specific version that you are using and look in the lib folder to see which JFreeChart version you'll need to use.Regards,Lucian Link to comment Share on other sites More sharing options...
mkeym Posted July 2, 2010 Author Share Posted July 2, 2010 Thank you, thats it. I would never been on it. Link to comment Share on other sites More sharing options...
danielnb Posted January 17, 2011 Share Posted January 17, 2011 Hi i have this problem, and it was not cleared to me wich version are compatible. im using the jfreechart 1.0.13 and jasperreport 3.7.6. Do you know wich is the latest version of jasperreport that i can user jfreechart. Thx 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