Line Chart - Dot(or similar) follow mouse?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
thatguyandrew1992
Posts: 3
Joined: Fri Jun 07, 2013 4:28 am
antibot: No, of course not.

Line Chart - Dot(or similar) follow mouse?

Post by thatguyandrew1992 » Fri Jun 07, 2013 4:35 am

Hey all! First post here. I love JFree Chart!
I need to create a line chart that has the ability to have a dot(or similar) follow the mouse cursor along a line chart, and when the user clicks, I can get the closest point to the location of the dot.

I did see this post, however it is old, and I cannot figure out how to implement the code given in CrossHairUI.java.
viewtopic.php?f=3&t=29379&p=82001&hilit ... use#p82001

If someone can implement the solution from the above link, or help with a new solution, I would be very grateful! :mrgreen:

Locked