HorizontalDateAxis and DateTickUnit

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

HorizontalDateAxis and DateTickUnit

Post by Alexandre » Fri Nov 22, 2002 1:15 pm

Hello,

I'm just trying to make a simple TimeSeriesCollection chart using just one BasicTimeSeries object. My horizontal range is about 30 days and I set the DateTickUnit to one day, with format "dd". However, with a one day period the labels don't fit in the chart, making it impossible to read.
Is there any way of setting the tick unit to one day, but making the labels appear in a diferent spacing, like 5 days, for example? That would make all the labels readable...


Thanks in advance,

Alexandre

Dave Gilbert

Re: HorizontalDateAxis and DateTickUnit

Post by Dave Gilbert » Fri Nov 22, 2002 6:55 pm

Hi Alexandre,

I've been thinking about changing the axis code to display 'major' and 'minor' tick marks, as some other chart systems do. The major tick marks would have labels, the minor tick marks would not.

But for now, every tick mark must have a label, so the best you can do is to set the tick unit to five days or whatever size results in non-overlapping labels...

Regards,

DG

Locked