Answer the question
In order to leave comments, you need to log in
How to get values by cursor coordinates in JFreeChart?
Hello. How to get values of all graphs by cursor coordinates? The chart uses TimeSeries . The y
-
axis is the values to get, the x -axis is the time. The orange arrow is the cursor. When you click on the field with the mouse, you need to get all the values from all series at the time point indicated by the red line (X axis);
In Google codes, I found the following example of obtaining coordinates on a chart: analisbursatil.googlecode.com/svn/trunk/AppletGr...
I can't apply this to determine the current item in series. I can get a list of series, but I can't get the desired value that would correspond to the cursor position.
In theory, it can be torn out of the XYDataset (I did this for tooltips), but what values should be substituted there? :/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question