I am finally starting to get this chart thing under control
I am still having trouble with the time axis.
Lets say I have a set of data for each day 0 to 24 hours I would like to plot this data on a chart where the x axis is in time form 0 to 24 hours. I played with using the date functions and stuff but am finding it kind of silly to have refernce all my data based on the start of the millisecond count in 1970.
Is there not some data set or serries class to deal with only a finite amount of time or am doomed to reference everything to 1970.
Time Axis
Re: Time Axis
You have to keep in mind that the date axis is a real time line, measured in milliseconds. The 1-Jan-1970 starting point is just to be consistent with java.util.Date.
You can use the BasicTimeSeries class to put together datasets using various time units (the Hour class is one you might look at). Wrap one or more BasicTimeSeries objects in a TimeSeriesCollection and you have a ready-made dataset for JFreeChart.
Regards,
DG.
You can use the BasicTimeSeries class to put together datasets using various time units (the Hour class is one you might look at). Wrap one or more BasicTimeSeries objects in a TimeSeriesCollection and you have a ready-made dataset for JFreeChart.
Regards,
DG.