rectangle bounding the chart

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

rectangle bounding the chart

Post by Mudit Wahal » Thu May 16, 2002 10:37 pm

Hi,

Is there any way to find out the four points which are bouding the actual chart rectangle, excluding all the labels, ticks, etc. I'm trying to draw the trend lines. I have written a method to scale them when the chart size is changed. The problem is it scales based on the entire JFreeChartPanel dimension. But when you change the size of the JFreeChartPanel, only the white chart is being changed. The labels, ticks, etc remain same size and fonts. Since, labels, ticks etc are not being scaled, the chart portion is scaled less than it should be if it was normal size change.

So, the lines on the chart are not exactly scaled and remain little longer.

Any ideas ? hooks ?

Thanks
Mudit

Mudit Wahal

Re: rectangle bounding the chart

Post by Mudit Wahal » Thu May 16, 2002 11:10 pm

Is that JFreeChartPanel.info.getDataArea() ?

Thanks
Mudit

David Gilbert

Re: rectangle bounding the chart

Post by David Gilbert » Fri May 17, 2002 4:59 am

Yes.

DG.

Locked