JFreeChart support image mapping?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Juan Garcia

JFreeChart support image mapping?

Post by Juan Garcia » Sat Jun 22, 2002 1:11 am

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

David Gilbert

Re: JFreeChart support image mapping?

Post by David Gilbert » Sat Jun 22, 2002 6:50 am

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.

David Gilbert

Re: JFreeChart support image mapping?

Post by David Gilbert » Wed Jun 26, 2002 11:56 pm

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.

Locked