reverse order of axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lax4mike
Posts: 6
Joined: Thu Jan 31, 2008 11:53 pm

reverse order of axis

Post by lax4mike » Fri Feb 29, 2008 4:32 pm

So i'm trying to get the numbers on the x axis to go backwards.
instead of:

Code: Select all

1  2  3  4  5  6
i want it to be:

Code: Select all

6  5  4  3  2  1
i'm using an XYPlot. i'm looking at the axis docs, but i don't see anything useful. is there another class that has something i can use? or am i missing something?

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Fri Feb 29, 2008 6:14 pm

Code: Select all

axis.setInverted(true);

kranthi_jfree
Posts: 1
Joined: Wed Apr 23, 2008 1:31 pm

reverse order of axis

Post by kranthi_jfree » Wed Apr 23, 2008 1:38 pm

hi

ur question

Code: Select all

 reverse order of axis
helped in my project
i used that syntax in my my projectn worked very nicesly
thanx[/code]
kranthi

Locked