Can you change axis label orientation?

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

Can you change axis label orientation?

Post by Laurence Reeves » Mon Oct 29, 2001 3:40 pm

Can anyone tell me if it's possible to change the x-axis category label orientation?

I have a chart showing some weekly info, the weeks being labelled as 2001-42, 2001-43, etc, and the labels overlap if I display too many weeks on the chart. If the labels can be shown vertically it should tidy it up a bit:

2 2
0 0
0 0
1 1
- -
4 4
2 3

Thanks,

Laurence.

Maga

RE: Can you change axis label orientation?

Post by Maga » Mon Oct 29, 2001 7:05 pm

HorizontalDateAxis myHorizontalAxis = (HorizontalDateAxis) myPlot.getAxis(Plot.HORIZONTAL_AXIS);
myHorizontalAxis.setVerticalTickLabels(true);

Hope this helps.

Locked