Retrieving chart properties

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

Retrieving chart properties

Post by Achilleus Mantzios » Fri Dec 21, 2001 1:27 pm

Is there a way to obtain the exact coordinates in the chart image,
after the chart is plotted??

For instance i'd like to have a way to compute the x,y
coordinates of an item in my XYDataset.

One way is to create a Rectangle2D minus the area taken by
titles, x-y axis, etc... and call getTranslatedValue,
and then add again the area subtructed before.

Is there a quick way to do that in order to avoid hardcoding??
(Ooops David i did it again :-)

Achilleus

Hans-Jurgen Greiner

RE: Retrieving chart properties

Post by Hans-Jurgen Greiner » Sun Dec 23, 2001 5:32 am

Achilleus,

If I understand your question correctly, I have done something similar, as I was looking to add mouse tracing and to describe the values presented by the plot. as well as a Vertical and Horizontal lines - and include zooming of a point and region.

I have sent some code to David, but haven;t heard from on this issue. If you are interested send me your email address to hgrei@hotmail.com and I will send you the updates code I had made to perform these taks.

Hans

Locked