DateAxis

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

DateAxis

Post by Akmal » Tue Nov 27, 2001 3:09 pm

Hello David!

I am using a DateAxis for my chart and just wanted to know how to specify how many tick values should be visible on the Axis!

Thanks a lot
Akmal

David Gilbert

RE: DateAxis

Post by David Gilbert » Thu Nov 29, 2001 9:34 am

Hi Akmal,

It's automatic by default, but if you want to specify a fixed tick size, try the following:

myDateAxis.setAutoTickValue(false);
myDateAxis.setTickUnit(xxx);

That should work, although I haven't tried it myself!

DG.

Locked