Newbie question on functionality

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
JDJ
Posts: 7
Joined: Fri Aug 11, 2006 4:35 pm

Newbie question on functionality

Post by JDJ » Fri Aug 11, 2006 4:41 pm

Hi, I've been searching for a charting tool and this looks perfect.

Before I buy the guide and try to make it work, maybe someone knows if this is possible.

Using Swing -
I need to query an Oracle database to get a recordset. The bar graph will be based on the recordset. Very simple graph.

Does JFreeChart read the data from a file or can JFreeChart use the recordset directly?

Next I need to refresh this process every hour.

Does this sound feasible with Swing + JFreeChart?

Any insights would be greatly appreciated.

JDJ.

oacis
Posts: 101
Joined: Fri Jan 07, 2005 5:57 am
Location: Australia, Sydney

Post by oacis » Mon Aug 14, 2006 7:50 am

Using Swing -
I need to query an Oracle database to get a recordset. The bar graph will be based on the recordset. Very simple graph.

Does JFreeChart read the data from a file or can JFreeChart use the recordset directly?
JFreeChart can read the data from the jdbc connection - have a look at org.jfree.data.jdbc.* for the Dataset classes.

you can also write your own to grab the resultset from the database and then populate whichever dataset you wish.
Next I need to refresh this process every hour.

Does this sound feasible with Swing + JFreeChart?
Not a big user of swing and JFreeChart, so I cannot give you too much insight. From memory it is possible.

JDJ
Posts: 7
Joined: Fri Aug 11, 2006 4:35 pm

Post by JDJ » Mon Aug 14, 2006 8:48 pm

Thanks oacis!

Locked