Time Series with absolute time

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

Time Series with absolute time

Post by Omar » Sun Jan 20, 2002 10:05 am

Hello all.

Got a problem here that I hope you guys can help me with.

It seems that the implementation class for TimePeriod like 'Hour','Minute','Second' takes just 'Day' as the argument for their constructor.

This means that a 'Minute' object does not know to which 'Hour' it is in, etc... Thus a time series graph (using BasicTimeSeries and TimeSeriesCollection) that is making use of the TimePeriod interface implementation cannot plot a graph with abosulte time. i.e. A 'minute based' time series, the time 14:10 BEFORE 13:50.

I need to plot a time series graph based on absolute time. Thus anybody know any specific technique on how I can achieve this?

Thank you in advance.

Omar

David Gilbert

RE: Time Series with absolute time

Post by David Gilbert » Wed Jan 23, 2002 1:47 pm

Hi Omar,

I spend most of my time working with daily data, but I want the time series classes to work well for other time periods, so I'd like to understand the issue here...but what do you mean by "absolute" time?

Regards,

DG.

Omar

RE: Time Series with absolute time

Post by Omar » Thu Jan 24, 2002 1:46 am

What I mean by absolute time is that if I use the "Minute" object, it must be related to the hour that the minute belongs to.

In short, I want to be able to input data into BasicTimeSeries with time periods lke 15:20, 16:35, 17:10,etc...

I found that if I just specify, say 30min for a particular day, it will default to the 30th minute of 1600 hours.

I'm getting around this problem by understanding that the -960 minute is at 12am, and work my way from there.

Locked