Elapsed Time

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

Elapsed Time

Post by Paul Ramirez » Tue Nov 12, 2002 12:55 am

Is there any way to show elapsed time along the X-axis instead of the date in a TimeSeries plot? If not, does anyone know what I would need to do to add this feature. I know there would be difficulty doing elapsed months (because months are not a fixed length) but you could do elapsed weeks, days, hours, minutes, seconds, and milliseconds. Maybe I could accomplish this with a new renderer? Actually, it would be really cool if this type of elapsed time plot could also be made generic. Maybe you could set the ticks along the X-axis to be generated based on some defined time period. For example, if one could specify that the ticks (along x-axis) occur every 30 milliseconds and where called "t". Then the ticks could be 1t, 2t, 3t, 4t ... along the x-axis.

This type of feature would be of greatest benefit for those trying to compare measurements taken at completely different times. This would allow users to align these measurements and compare them.

Any help would be greatly appreciated.

Thanks,
Paul Ramirez

Dave Gilbert

Re: Elapsed Time

Post by Dave Gilbert » Tue Nov 12, 2002 4:07 pm

Hi Paul,

It sounds like you need to create a new RelativeDateAxis class, and have the x-values in your dataset represent milliseconds since T, where T is an arbitrary point in time. That would be a useful enhancement to JFreeChart.

Regards,

DG

Locked