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!
classes not found
Re: classes not found
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
>
> 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