Date labels

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

Date labels

Post by valentin » Thu Nov 28, 2002 4:44 pm

Hi,
Is it possible to have an XAxis with Date labels that look only the months?
I want look this:

month1 month2 month3 month4 ..., but I want have the valus for days

I want to say how I can do it!

Thanx in advance

Regards,
Valentin

David Gilbert

Re: Date labels

Post by David Gilbert » Fri Nov 29, 2002 6:36 pm

Sure, you can set a tick unit manually with the setTickUnit(...) method in the DateAxis class. Just create a DateTickUnit with whatever DateFormat you want, and pass it to the setTickUnit(...) method.

Regards,

DG

Locked