rotate y axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lebtho
Posts: 7
Joined: Fri Jul 21, 2006 2:36 pm

rotate y axis

Post by lebtho » Mon Aug 14, 2006 7:57 pm

Is there a possibility to rotate the y axis? That means that for example the minimum of y is 20 and the maximum is 1 . I want to start the y axis with 20 and end it with 1. So that the y value of 20 starts direct at the x axis line and ends with 1 at the end of the y axis.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Aug 15, 2006 7:43 am

You just need to call axis.setInverted(true).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked