Upside down BarChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bztom33
Posts: 35
Joined: Tue Jul 11, 2006 10:35 pm

Upside down BarChart

Post by bztom33 » Thu Aug 21, 2008 4:35 am

Is it possible to render a upside down bar chart?

I want to generate something like this

Code: Select all

---------------------------------------------------------------
| |      |  |    | |
| |      |  |    | |
| |       --     --
 --   



_____________________________________________________
01-08-08     02-08-08     03-08-08


martink
Posts: 3
Joined: Thu Aug 21, 2008 2:21 pm

axis.setInverted( true )

Post by martink » Thu Aug 21, 2008 2:25 pm

Hi,

you can set the inversion of the order on any axis, ie by

Code: Select all

NumberAxis axis = (NumberAxis) plot.getRangeAxis();
axis.setInverted( true );
Greetings,

Martin

bztom33
Posts: 35
Joined: Tue Jul 11, 2006 10:35 pm

Post by bztom33 » Fri Aug 22, 2008 2:49 am

Thanks for your help! It works great.

Locked