put onmouseover event in a created SVG

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

put onmouseover event in a created SVG

Post by Fishy » Fri Jul 26, 2002 3:39 pm

Hi,

i have to save my chart as an SVG. It's OK.
But i need to put some onmouseover event in the SVG.

is it possible, or not?

Thanks
Fishy

David Gilbert

Re: put onmouseover event in a created SVG

Post by David Gilbert » Mon Jul 29, 2002 10:06 am

Is that something you can do with SVG? (My SVG knowledge is very limited).

To create charts in SVG format, I've used Batik because it has an SVGGraphics2D implementation which isolates JFreeChart (and me!) from having to know anything about SVG. But it also means that there's no easy mechanism for setting up clickable regions in SVG with JFreeChart.

Regards,

DG.

Fishy

Re: put onmouseover event in a created SVG

Post by Fishy » Mon Jul 29, 2002 1:01 pm

Yes, in SVG you can add javascript events, like onmousover, onclick, etc.
And i need a tooltip, when mouse is over a column. And i had to put it into the SVG too.

but, how i see, it's not possible in jfreechart (yet :-))

BR,
Fishy

Locked