How to change X-Axis scale orientation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ramp&s
Posts: 7
Joined: Fri Feb 27, 2009 8:19 am

How to change X-Axis scale orientation

Post by ramp&s » Mon Mar 02, 2009 8:47 am

Hi ,i would like to change the xaxis scale orientation(horizontal,vertical).
anybody please tell me how to do that ?


Regards
Ram

Didi-chan
Posts: 5
Joined: Fri Feb 27, 2009 1:53 pm

Re: How to change X-Axis scale orientation

Post by Didi-chan » Mon Mar 02, 2009 10:05 am

You mean the labels of the tick units???

If you are working with CategoryAxis:

Horizontal --> domainAxis.setCategoryLabelPositions(CategoryLabelPositions.STANDARD);
Vertical --> domainAxis.setCategoryLabelPositions(CategoryLabelPositions.DOWN_90);

If you are working with a ValueAxis:

Horizontal --> rangeAxis.setVerticalTickLabels(false);
Vertical --> rangeAxis.setVerticalTickLabels(true);

I think that's what you meant.

ramp&s
Posts: 7
Joined: Fri Feb 27, 2009 8:19 am

Re: How to change X-Axis scale orientation

Post by ramp&s » Mon Mar 02, 2009 10:55 am

Thank you very much chan !!!

Regards
Ram

Locked