breakage 0.9.4 version (date format)

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

breakage 0.9.4 version (date format)

Post by Karthick » Fri Jan 03, 2003 12:19 pm

Dear Team ,

While creating Time graph I have dateformat
new SimpleDateFormat("hh:mm:ss ") as one of the argument in
HorizontalDateAxis , but graph appeared with default month/date/year format.

But it worked in 0.9.3 version. Is this is the breakage ?

Thanks & Regards,
S.Karthick

Karthick

Re: breakage 0.9.4 version (date format)

Post by Karthick » Fri Jan 03, 2003 12:49 pm

I solved the problem myself. Bycalling

xax.setTickUnit(new DateTickUnit(DateTickUnit.SECOND,tickVal,new SimpleDateFormat("hh:mm:ss a")));

here "xax" is HorizontalDateAxis.

It has updated format in graph,


I did so after analysing your code.

Anyway I feel there is no need pass simpleDateFormat in HorizontalDateAxix constructor. Since it is of useless in lataest version. So I feel it would be appropriate to remove that parameter (SimpleDateformat) in HorizonatlDateAxis constructor or depricate it in future version.

David Gilbert

Re: breakage 0.9.4 version (date format)

Post by David Gilbert » Fri Jan 03, 2003 5:56 pm

Thanks for reporting this...I think it has already been cleaned up in the CVS version.

Regards,

Dave Gilbert

Locked