How can I set the size of a chart ?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lonelyplanetfr

How can I set the size of a chart ?

Post by lonelyplanetfr » Mon Nov 19, 2001 3:35 pm

Hi !

I'am using a CategoryChart and I would like to 'fix' the size of the chart. As I use the 'setSize()' method, It does'nt change anything to the size which remain the same)

I'm sure I do something wrong but what !!!

Thanks !

David Gilbert

RE: How can I set the size of a chart ?

Post by David Gilbert » Mon Nov 19, 2001 4:29 pm

Hi,

If you are using JFreeChartPanel then the size is determined by the layout manager in the parent container.

Regards,

DG.

John Currier

RE: How can I set the size of a chart ?

Post by John Currier » Mon Dec 10, 2001 7:31 pm

Not if the layout asks the JFreeChartPanel for its minimum/preferred size (like a GridBagLayout does). It gets really screwed up.

John

Locked