Bar chart Date Formatting

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jawednazarali
Posts: 6
Joined: Wed Feb 14, 2007 8:49 am

Bar chart Date Formatting

Post by jawednazarali » Thu Feb 15, 2007 9:42 am

I have one section in bar that stores date, I applied the date formatter using folowing code.

Code: Select all

renderer.setBaseToolTipGenerator(
                       new StandardCategoryToolTipGenerator("{0}", 
                       new SimpleDateFormat("MM/dd/yyyy")));
but when graph is generated date format is not there. I am getting following output:
Thu Aug 01 00:00:00 PKST 2002.

What I have been doing wrong.?
Jawed Ali
http://www.jawed.info

Software is Harder than it sounds.

Locked