Time in Axis

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

Time in Axis

Post by Magne Groenhuis » Mon Oct 14, 2002 10:02 am

Is it possible to show a timeperiod in one of the axis?

Like 00:02:15 instead of 135s

tia,
magne

Dave Gilbert

Re: Time in Axis

Post by Dave Gilbert » Mon Oct 14, 2002 11:32 am

The HorizontalDateAxis class will display times. The x-values in your dataset need to be the number of milliseconds since 1-Jan-1970, as used by java.util.Date.

Regards,

DG.

Locked