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
rectangle bounding the chart
Re: rectangle bounding the chart
Is that JFreeChartPanel.info.getDataArea() ?
Thanks
Mudit
Thanks
Mudit