Show arbitrary tooltip?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
blueser
Posts: 23
Joined: Wed Sep 14, 2005 5:05 pm

Show arbitrary tooltip?

Post by blueser » Mon Jul 09, 2007 6:37 pm

Hi,

is it possible to show an arbitrary tooltip on a specific coordinate? The situation is this: our users want to be able to know what are the data space coordinates to any place they click on the chart. ScatterPlotDemo3 shows me it's possible to capture mouse clicks (although a little more help would much appreciated on how to achieve this ;)). The problem is how I will show this information.

Users' primary choice would be showing the coordinate on a tooltip, the same way JFC already shows datapoints coordinates. Second option would be using some label or annotation inside the chart, and third option would be showing them outside the chart, maybe using a JLabel. My order will depend on how easy each of the approaches is ;)

Any help will be much appreciated.

TIA

Andre

Locked