How to set (only) label interval of axis ranges

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
peetzer
Posts: 11
Joined: Mon May 11, 2009 2:20 pm

How to set (only) label interval of axis ranges

Post by peetzer » Thu May 14, 2009 7:10 am

I have set the the date to a customizable unit...

domainAxis.setAutoRange(false);
domainAxis.setTickUnit(new DateTickUnit (DateTickUnitType.MINUTE, unitInterval));
domainAxis.setMaximumDate(new Date(30000 * groupOption * (2880 / unitInterval)));

However I want the range (value), label below axis not show for every unit because if the interval is short it will become unreadable because the labels are to close apart...

Is it possible to determine when it should be printed although the interval stays the same?

Kind regards Peter

Locked