ScatterPlot Data Point Labels

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Nathan Carey

ScatterPlot Data Point Labels

Post by Nathan Carey » Tue Oct 01, 2002 12:47 am

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

David Gilbert

Re: ScatterPlot Data Point Labels

Post by David Gilbert » Tue Oct 01, 2002 11:31 pm

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.

Locked