ChartFactory « Development « JFreeChart Q&A





1. Cant find ChartFactory    jfree.org

Im trying to create a graph in eclipse using some example code but its not recognising the ChartFactory class. Which Jar's do i need to add to my build path in order for the class to be recognised? I have already added the jcommon jar and the jfreechart zip hope you can help

2. NoClassDefFoundError when ChartFactory.createXYLineChart    jfree.org

Hi, when executing a servlet that generates a chart I get the exception shown below. It's a java.lang.NoClassDefFoundError, but it does not specify which class it's not understanding. The version of jfreechart I'm using is 0.9.21 with jcommon 0.9.6, and the servlet is running on tomcat 3.3 (yes really old, but migration to a newer version is not possible right now, ...

3. Memory leak JFreeChart ChartFactory.createTimeSeriesChart    jfree.org

Memory leak JFreeChart ChartFactory.createTimeSeriesChart by pim42 Sat Oct 14, 2006 9:41 pm I've run into a memory problem with JFreeChart. I'm new to JFreeChart and even Java but I don't think the behavor I'm seeing is correct. I have a application based on the Netbeans platform. One window has a chart that updates every second. This is done using a ...

4. problems with ChartFactory    jfree.org

5. ChartFactory and Overlaid Charts    jfree.org

Answer by rachel_k Tue Feb 06, 2007 7:46 pm The way to do this is to use ChartUtilities.saveChartAsJPEG(new File(DestinationFile), jfc, Width, Height); A jfreechart must be generated. jfc represents jfreechart. I wrote a bean that can be used (see code below): package com.thomson.chart; import java.io.File; import org.jfree.chart.JFreeChart; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.chart.ChartUtilities; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.CategoryLabelPositions; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.axis.ValueAxis; import ...

6. JFreeChart.Chartfactory Not Responding - No Exceptions    jfree.org

Common questions: Your system is in headless mode and all libraries are installed? (Yeah, obvious questions, but I better ask anyway.) Second: Does it work if you access the tomcat-server directly? In that case, it may be a config-issue with the connector. And finally: Does it hang or crash? What does the debugger say: Is the thread for the request still ...

7. ChartFactory.createXYStepChart    jfree.org

ChartFactory.createXYStepChart by ed_r4d1cal Sat Mar 28, 2009 4:13 pm Hi, i'am an italian newbie of JFreeChart.Now i'am doing an application that show a XY chart. The data that i have to print are discrete so i use a XYStepChart. The problem is how the chart print the possible x's values under the XAxis. Infact if i pass a dataset with ...

8. JFreeChart incompatible with ChartFactory    jfree.org

I keep getting an error when just trying to load one of the example line charts on the line: JFreeChart chart = ChartFactory.createXYLineChart and the dataset is not correct. I have reset my paths, downloaded and reloaded all libraries, cannot get rid of the issue to move on. here is the code: This was cut and pasted out of the developer ...

9. Ramdon NoClassDefFoundError on ChartFactory.createLineChart    jfree.org

Hello I'm using jfreechart 1.0.13 with jcommon on a web application deployed on a Tomcat 5.5 / unix server. Sometimes I've the following error: java.lang.NoClassDefFoundError at org.jfree.chart.ChartFactory.createLineChart(ChartFactory.java:1242) at com.my.project.web.object.statistic.Statistic.generateLineChart(Statistic.java:1490) at org.apache.jsp.jsp.DisplayChart_jsp._jspService(DisplayChart_jsp.java:261) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.my.project.web.StatisticsDisplayReport.doGet(StatisticsDisplayReport.java:534) at com.my.project.web.StatisticsDisplayReport.doPost(StatisticsDisplayReport.java:774) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) ...