Get coordinates of cursor in JChart2D
问题 I'm using JChart2D for trace a values of a double array. I'm using ZoomableChart and I want get coordinates (x, y) of cursor when this stay over ZoomableChart in my code to show them in a JLabel and draw a vertical line. How can I get the coordinates of the cursor? How can I draw this line? 回答1: To get a point is easy. Add a MouseMotionListener to the ZoomableChart. I'm guessing you want this information to represent a point in the data in the chart, rather than in the potentially zoomed