Hi,
Today I have downloaded and updated JFreeChart 0.9.2 to 0.9.4. But while creating a "TimeSeriesChart with 'null' XYDataset" I am getting the following exception....
It was working fine with version 0.9.2
Exception occurred during event dispatching:
java.lang.NoSuchMethodError
at com.jrefinery.chart.JFreeChartInfo.<init>(Unknown Source)
at com.jrefinery.chart.JFreeChart.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createTimeSeriesChart(Unknown Source )
My chart creation statement is as follows.
logChart = ChartFactory.createTimeSeriesChart("", "", "", null, false);
Any idea how to come out this problem?
Thanks,
reji
TimeSeries bug in version 0.9.4......?????
Re: TimeSeries bug in version 0.9.4......?????
I am having 9 TimeSeriesChart components in a single panel and it is not possible to create the XYDataset for every chart while loading the panel....
Re: TimeSeries bug in version 0.9.4......?????
Hi Reji,
I'm having trouble reproducing the problem, can you put together a small sample app that shows the problem.
Regards,
DG
I'm having trouble reproducing the problem, can you put together a small sample app that shows the problem.
Regards,
DG
Re: TimeSeries bug in version 0.9.4......?????
Hi David,
This is my test code and the result...
------------------------------------------------------------------------------------------------
import java.awt.*;
import javax.swing.*;
import com.jrefinery.chart.JFreeChart;
import com.jrefinery.chart.ChartFactory;
import com.jrefinery.chart.ChartPanel;
public class TimeDemo
{
public TimeDemo()
{
JFreeChart chart = ChartFactory.createTimeSeriesChart("", "", "",null, false);
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new Dimension(500, 270));
JFrame frame = new JFrame();
frame.getContentPane().add(chartPanel);
frame.setVisible(true);
frame.pack();
}
public static void main(String[] args)
{
new TimeDemo();
}
}
------------------------------------------------------------------------------------------------
run time result
------------------------------------------------------------------------------------------------
C:\JDK1.3\test>java TimeDemo
Exception in thread "main" java.lang.NoSuchMethodError
at com.jrefinery.chart.JFreeChartInfo.<init>(Unknown Source)
at com.jrefinery.chart.JFreeChart.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createTimeSeriesChart(Unknown Source
)
at TimeDemo.<init>(TimeDemo.java:17)
at TimeDemo.main(TimeDemo.java:37)
------------------------------------------------------------------------------------------------
This is my test code and the result...
------------------------------------------------------------------------------------------------
import java.awt.*;
import javax.swing.*;
import com.jrefinery.chart.JFreeChart;
import com.jrefinery.chart.ChartFactory;
import com.jrefinery.chart.ChartPanel;
public class TimeDemo
{
public TimeDemo()
{
JFreeChart chart = ChartFactory.createTimeSeriesChart("", "", "",null, false);
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new Dimension(500, 270));
JFrame frame = new JFrame();
frame.getContentPane().add(chartPanel);
frame.setVisible(true);
frame.pack();
}
public static void main(String[] args)
{
new TimeDemo();
}
}
------------------------------------------------------------------------------------------------
run time result
------------------------------------------------------------------------------------------------
C:\JDK1.3\test>java TimeDemo
Exception in thread "main" java.lang.NoSuchMethodError
at com.jrefinery.chart.JFreeChartInfo.<init>(Unknown Source)
at com.jrefinery.chart.JFreeChart.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createTimeSeriesChart(Unknown Source
)
at TimeDemo.<init>(TimeDemo.java:17)
at TimeDemo.main(TimeDemo.java:37)
------------------------------------------------------------------------------------------------
Re: TimeSeries bug in version 0.9.4......?????
Hi Reji,
The demo runs fine for me (displays a chart with no data), no exceptions.
My guess is that you have the previous version of JCommon on your classpath still...can you check that? It needs to be 0.7.1.
Regards,
DG.
The demo runs fine for me (displays a chart with no data), no exceptions.
My guess is that you have the previous version of JCommon on your classpath still...can you check that? It needs to be 0.7.1.
Regards,
DG.
Re: TimeSeries bug in version 0.9.4......?????
Hi,
Thanks David.. I was using jcommon-0.7.0 ... It works fine with version 0.7.1
regards,
reji
Thanks David.. I was using jcommon-0.7.0 ... It works fine with version 0.7.1
regards,
reji