0

Hi everybody,

I would like to use a XYBlockchart with the following features:

1. Highlight square when mouse is over it
2. Show tooltip (which is simple, as far as I know - just setting a flag == true)
3. Open an additional frame with a graph by double-clicking on a square

So the questions are:

Is highlighting possible at all (without too much effort)?
How do I get the the closest data point to the position I am clicking onto?

I would appreciate any help.

Ben

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by man.getName()
0

Sir, yes Sir! I am sorry. It will not happen again.
Here they are, the cross-post-links:

http://www.java-forums.org/advanced-java/30413-jfreechart-highlight-click.html#post130723

http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=30263

Meanwhile I have found the solution to my own post.
It can be found among the examples coming with the jFreeChart Development Guide:

1. MouseOverDemo1.java
2. JFreeChart chart = ChartFactory.createBlablaChart(...,true,...); // and the tooltip is on
3. MouseListenerDemo1-4.java

Thank you anyway

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.