horizontal date ticks at weekly intervals

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

horizontal date ticks at weekly intervals

Post by Nancy Ryan » Mon Dec 16, 2002 8:28 am

Hi,
I'm sure there's a way to do this but just couldn't find it :-(

Say I have 31 datapoints for the 31 days in December.
I need the date ticks on the Horizontal Axis of an XYPlot to be on the Mondays of the month ( ticks on 2nd Dec, 9th Dec ...).

Any help would be appreciated.

-N.R.

David Gilbert

Re: horizontal date ticks at weekly intervals

Post by David Gilbert » Mon Dec 16, 2002 5:58 pm

Hi Nancy,

I don't know of a way to achieve that without altering the code in some way. The DateTickUnit class that controls the intervals doesn't really take into account which day of the week to put the tick marks onto...although it would be useful. Another item for the to-do list...

Regards,

Dave Gilbert

Nancy Ryan

Re: horizontal date ticks at weekly intervals

Post by Nancy Ryan » Tue Dec 17, 2002 6:05 am

Thanks David. I've been going through the other posts in the forum and see that you've got a lot on your todo list. Can't wait till the next release of JFreeCharts!.

Thanks a million ,
N.R.

Locked