Independently controlling the plot area inside a chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
anujcb
Posts: 8
Joined: Thu Nov 15, 2007 12:03 am

Independently controlling the plot area inside a chart

Post by anujcb » Fri Aug 15, 2008 3:19 am

Is there a way to set the size of the plot area(not the whole chart) idependently? I am generating 2 PNG charts using org.jfree.chart.servlet.ServletUtilities.saveChartAsPNG(), Both has the exact same time range on x-axis, but the first one has duel y-axis, this makes the plot area shrink in the first graph. I would like to readjust just the plot area of the second one as well to the same size(or set the size of the plot area to some fixed size so the shrink wont happen) of the first. Is there anyway to control the size of the plot area inside a chart independently?

anujcb
Posts: 8
Joined: Thu Nov 15, 2007 12:03 am

Post by anujcb » Fri Aug 15, 2008 4:00 am

hmmm.... i guess from Dave's reply to other similar request is 'setFixedDimension', but anybody have any ideas on what values will work for this api if there is only one plot. I tried 0.1 - 0.9 and none worked.

Locked