JdbcXYDataset cannot plot data over one day

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

JdbcXYDataset cannot plot data over one day

Post by atom » Mon Jul 01, 2002 6:57 pm

Hi

I am plotting time series data from a database using JdbcXYDataset. So I have my x values as time and the y values as value1

x= time <------------- over Monday Tuesday and so on

11 am 1pm 3pm 8pm 10 am 11am 2pm

y= value1

10 20 30 10 23 21 35

When I plot this I get my graph plots reprinted. So JFreeChart thinks

11 am 1pm 3pm 8pm 10 am 11am 2pm

Is one day when in fact it is time over two days how can I tell it to plot data over different days


Regards
AM

David Gilbert

Re: JdbcXYDataset cannot plot data over one day

Post by David Gilbert » Tue Jul 02, 2002 5:58 am

I'm not completely familiar with the JdbcXYDataset class, but looking through the code it looks like it will accept DATE, TIME and TIMESTAMP values (among others) for the x-axis. I think DATE and TIMESTAMP should span multiple days, but if you are using TIME then there won't be any way for JFreeChart to know what day the value falls on.

Regards,

DG.

atom

Re: JdbcXYDataset cannot plot data over one day

Post by atom » Tue Jul 02, 2002 7:05 pm

Thanxs David

Locked