Axis and setFixedDimension

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
AlanH99
Posts: 18
Joined: Wed Apr 05, 2006 3:31 pm
Location: Edinburgh UK

Axis and setFixedDimension

Post by AlanH99 » Thu Aug 09, 2007 4:54 pm

I'm having trouble with the fixing the width of an Axis. This is required so that items below are centred correctly.

I call setFixedDimension when the chart is created, however it does not work as the width changes when the chart data is changed.

See the examples below where the axis width has changed as the axis Upper Range drops from 6 figures to 5.

http://www.decisionsdecisions.net/example/example_a.png

After update:

http://www.decisionsdecisions.net/example/example_b.png

Thanks.


Alan

AlanH99
Posts: 18
Joined: Wed Apr 05, 2006 3:31 pm
Location: Edinburgh UK

Post by AlanH99 » Wed Sep 05, 2007 11:48 am

Anyone any ideas about this?

What is setFixedDimension mean to do? Maybe I'm misunderstanding.

It certainly changes the width of an axis but it does not fix it , that is if the values change the the overall width of the axis changes. See screenshots in previous post.

Thanks.


Alan

Locked