Reputation: 39
I noticed that if I hover over my graphs it shows the tooltips like expected, but after a certain time they disappear. Now I managed to get around this problem by using setDismissDelay
of the ChartPanel
and setting it to a very high number, but this doesn't look like best practise.
Is there a better way to do this, maybe disable the method that hides the tooltip?
Upvotes: 2
Views: 793
Reputation: 205775
Instead of altering the tooltip parameters, add a ChartMouseListener
that updates an adjacent component in its chartMouseMoved()
handler. You can display the same data as the tooltip generator, and it won't change until the mouse moves. There's a related example here.
Upvotes: 1