TimeSeries bug in version 0.9.4......?????

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
reji

TimeSeries bug in version 0.9.4......?????

Post by reji » Sat Oct 19, 2002 3:58 am

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

reji

Re: TimeSeries bug in version 0.9.4......?????

Post by reji » Sat Oct 19, 2002 4:00 am

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....

Dave Gilbert

Re: TimeSeries bug in version 0.9.4......?????

Post by Dave Gilbert » Mon Oct 21, 2002 8:56 am

Hi Reji,

I'm having trouble reproducing the problem, can you put together a small sample app that shows the problem.

Regards,

DG

reji

Re: TimeSeries bug in version 0.9.4......?????

Post by reji » Mon Oct 21, 2002 9:47 am

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)

------------------------------------------------------------------------------------------------

Dave Gilbert

Re: TimeSeries bug in version 0.9.4......?????

Post by Dave Gilbert » Mon Oct 21, 2002 9:51 am

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.

reji

Re: TimeSeries bug in version 0.9.4......?????

Post by reji » Mon Oct 21, 2002 10:04 am

Hi,

Thanks David.. I was using jcommon-0.7.0 ... It works fine with version 0.7.1

regards,

reji

Locked