FixedMillisecond.class query ..

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

FixedMillisecond.class query ..

Post by Kiran Halwai » Mon Feb 10, 2003 6:17 pm

I am using FixedMillisecond as the timePeriodClass in BasicTimeSeries constructor.
s = new BasicTimeSeries(colArr, FixedMillisecond.class);

and

Passing the time that comes in Second from the my DB to add function.

s[i-2].add((new FixedMillisecond(Integer.parseInt(rs.getString(1)) * 1000)), Integer.parseInt(rs.getString(i)));

Now I want to display, the date on X-axis which is complete and not only the millisecond.

Like I want to display as "Feb 7, 2003:11:58:12" and not just like "00:05". How do I achieve it?

Please help.

Regards,
Kiran Halwai

David Gilbert

Re: FixedMillisecond.class query ..

Post by David Gilbert » Tue Feb 11, 2003 10:19 am

In 0.9.5, you can use the setDateFormatOverride(...) method in the DateAxis class to override the auto-selected date format.

Regards,

Dave Gilbert

Locked