skip label on x axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
csckid
Posts: 1
Joined: Fri May 21, 2010 7:09 am
antibot: No, of course not.

skip label on x axis

Post by csckid » Fri May 21, 2010 7:22 am

Label in xaxis overlap with each other and are not visible clearly.
yaxis is solved nicely by this code
final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
rangeAxis.setAutoRangeIncludesZero(true);

I think xaxis values are changed from CategoryAxis but couldn't find the right function that will bring the change.

Thanks

Locked