set size of chart data area.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vijay
Posts: 13
Joined: Thu Nov 17, 2005 3:20 pm
Location: India

set size of chart data area.

Post by vijay » Fri Nov 25, 2005 4:21 pm

Hi,

I have multiple graphs in which the x and y grids spacing is expected to be of same size. Is there a way i can control the dataarea of the plot. Any pointers how i can go about doing this.


Thanks,
Vijay

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 » Fri Nov 25, 2005 4:43 pm

This something that JFreeChart makes difficult unfortunately, because the data area is calculated as the space remaining after the titles, legend and axes have been laid out. You can sometimes fudge the correct result using the setFixedDimension() method in the Axis class, but that means you have to calculate the widest/tallest axis yourself, which is not a very clean solution.
David Gilbert
JFreeChart Project Leader

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

Locked