Mouse Events for Web

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rishikanth
Posts: 6
Joined: Fri Nov 13, 2009 10:02 pm
antibot: No, of course not.

Mouse Events for Web

Post by rishikanth » Sun Dec 20, 2009 6:09 am

Hi Everyone,

I using JFreechart to generate XYPlot and write it back to JSP page. Can I have mouse Listener attached to these graphs, so that data is displayed when the user clicks on the graph/point.

Thanks,

jleech
Posts: 62
Joined: Fri Oct 26, 2007 9:18 pm

Re: Mouse Events for Web

Post by jleech » Mon Dec 21, 2009 8:59 pm

You can generate an image map and use that for chart interactivity. Or you can put JFreeChart in an applet. Or you can generate SVG and handle mouse events via javascript - like this: http://www.svgopen.org/2009/papers/7-En ... Mechanism/

Locked