Horizontal labels on Y-Axis

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

Horizontal labels on Y-Axis

Post by Michael Joyce » Mon Oct 21, 2002 4:29 am

Hi,

I want to have my labels on a VerticalNumberAxis display horizontally. I have looked through the documentation and th forums, but I must be missing something.

Any ideas.

Michael

Dave Gilbert

Re: Horizontal labels on Y-Axis

Post by Dave Gilbert » Mon Oct 21, 2002 8:52 am

Hi Michael,

For the axis label, you can change it using this method:

rangeAxis.setVerticalLabel(false);

For the tick labels (the numerical values), the orientation is fixed, you can only have them horizontally.

Regards,

DG.

Locked