Plot Bound coordinates

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

Plot Bound coordinates

Post by Diego Garber » Fri Feb 21, 2003 2:59 pm

Hello, I am trying to provide a way for users to draw lines inside the chart (tendency lines) and I've been pretty succesfull so far. The thing is that I cant find how to get the plot coordinates in order to compare them against the XY coordinates of the mouse event.
Is there any way to findout the bound coordinates of the plot?. Thanks,

Diego.

David Gilbert

Re: Plot Bound coordinates

Post by David Gilbert » Fri Feb 21, 2003 4:30 pm

Take a look at the getScaledDataArea() method in the ChartPanel class.

Regards,

Dave Gilbert

Diego Garber

Re: Plot Bound coordinates

Post by Diego Garber » Fri Feb 21, 2003 5:15 pm

I did, but the coordinates don't seem to match is like they use two different scales.

Locked