Hi I wanted to be able to click on a certain image and be able to acomplish an action. And even more specific in a bar char click on a bar and process an action that would display more detailed information.
Is this possible with JFreeChart?
Great product congratulations!!!
Juan Garcia
JFreeChart support image mapping?
Re: JFreeChart support image mapping?
Hi Juan,
This is possible if you are using JFreeChart in a client application. Take a look at MouseListenerDemo1 and MouseListenerDemo2...these write information about mouse clicks (and motion) to standard output. The idea of these demos is to show you how to get hold of the underlying chart information, you can then implement whatever actions you want.
If you want to use an image map in HTML, then this isn't supported yet. I have it on my to-do list to write some code to generate image maps for this.
Regards,
DG.
This is possible if you are using JFreeChart in a client application. Take a look at MouseListenerDemo1 and MouseListenerDemo2...these write information about mouse clicks (and motion) to standard output. The idea of these demos is to show you how to get hold of the underlying chart information, you can then implement whatever actions you want.
If you want to use an image map in HTML, then this isn't supported yet. I have it on my to-do list to write some code to generate image maps for this.
Regards,
DG.
Re: JFreeChart support image mapping?
I committed some code to CVS today that creates a simple imagemap (works for pie charts and bar charts). It will be included with version 0.9.2.
Regards,
DG.
Regards,
DG.