I usually use JFreeChart for plotting the scientific data in my applications. Now I came across a requirement I don't know how to handle.
I need to implement in a scatter plot a utility to allow the user to choose features in a region of the plot (freehand o with a polygon, rectangle won't do).
Does anyone knows how to handle this? Either with JFreeChart or with other libraries.
JFreeChart has no interactive capabilities (unless you use it in a Java desktop app, where it comes with a GUI component that does). You will need to find another way to select regions aside from JFreeChart, maybe with an HTML area tag. But that can't handle freehand selections. Assuming we're even talking about a web app, which you haven't said. If it's a desktop app this could be implemented as part of the GUI.
posted 5 days ago
Indeed is a Desktop app. I will try to override the MouseListener and implement it myself.