classes not found

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

classes not found

Post by Leonard » Mon Jun 24, 2002 4:39 am

question 1:Can I asking for an exmple of the JFreeChart that dinamically conect to oracle database to retrive the value from database and display it in the chart using JFreeChart.

question 2: when i create this line of code:

XYDataset xyData=new DefaultXYDataset(new String {request}, results);
JFreeChart myChart=JFreeChart.createTimeSeriesChart(xyData);

then the error indicate that methos
createTimeSeriesChart(com.jrefinery.data.XYDataset) not found in class com.jrefinery.chart.JFreeChart.

what should i do? thankx!

David Gilbert

Re: classes not found

Post by David Gilbert » Mon Jun 24, 2002 3:04 pm

Leonard wrote:
>
> question 1:Can I asking for an exmple of the JFreeChart that
> dinamically conect to oracle database to retrive the value
> from database and display it in the chart using JFreeChart.

There are several JdbcXXXDataset classes for doing this, and code in the com.jrefinery.chart.demo.jdbc.servlet and com.jrefinery.chart.demo.jdbc.swing packages that might help.

> question 2: when i create this line of code:
>
> XYDataset xyData=new DefaultXYDataset(new String {request},
> results);
> JFreeChart myChart=JFreeChart.createTimeSeriesChart(xyData);
>
> then the error indicate that methos
> createTimeSeriesChart(com.jrefinery.data.XYDataset) not found
> in class com.jrefinery.chart.JFreeChart.

That method is in the ChartFactory class, not JFreeChart.

Regards,

DG

Locked