x-axis

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

x-axis

Post by hag » Fri Dec 13, 2002 5:09 pm

Hi!,

How can I set the distance between the category labels on x-axis. The problem is that if there are many labels, they appear very clutttered, I what to show every 5 x value, but I still don't know how.

I am using DefaultIntervalCategoryDataset.

Thanks in advance.
Id.

David Gilbert

Re: x-axis

Post by David Gilbert » Mon Dec 16, 2002 6:25 pm

There is a method in the HorizontalCategoryAxis class that was contributed by a developer that had the same problem:

setSkipCategoryLabelsToFit(boolean);

You could try that and see if it does what you want.

Regards,

Dave Gilbert

Locked