I'm working with a visualisation problem where data points in a scatter chart represent events, and I'd like to be able to click on a specific data point, and execute arbitrary code (in order to display the background details of the event).
I'm only just getting into JFreeChart, so I'm not certain of the portion of code I'd need to modify to support this, or whether or not it's possible.
Any hints, tips, suggestions?
Cheers,
Nathan Carey
ScatterPlot Data Point Labels
Re: ScatterPlot Data Point Labels
Take a look at MouseListenerDemo1 and MouseListenerDemo2 in the com.jrefinery.chart.demo package. These will give you an idea of how the chart mouse event mechanism works...it should work fine with a scatter plot too, although the code is not complete yet so I might have missed something.
Regards,
DG.
Regards,
DG.