Tooltips with SVG

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

Tooltips with SVG

Post by Les Gerads » Mon Sep 30, 2002 7:32 pm

Has anyone used JFreeChart to generate SVG charts that include tooltips for the data points?

I generate the SVG charts fine for my TimeSeries charts, but there are no tooltips. The only tooltip support I can find are for PNG and JPEG graphics. It is looking like I'll have to go into the Batik API or manipulate the DOM directly to have this functionality which sounds like it will be a headache.

I would really appreciate a point in the right direction. The documentation for SVG support is minimal and I can't find mention of any SVG use on the forum. Are there really that few people using SVG? It seems like such a powerful tool.

Thanks,

Les

David Gilbert

Re: Tooltips with SVG

Post by David Gilbert » Tue Oct 01, 2002 11:35 pm

Hi Les,

I haven't explored Batik in depth. The Graphics2D implementation provided by Batik makes it simple to generate charts in SVG format, but doesn't really provide access to special features of SVG. I'm not sure what would be the best way to transfer tool tip information to SVG...

Regards,

DG

Akmal Sarhan

Re: Tooltips with SVG

Post by Akmal Sarhan » Wed Oct 02, 2002 7:00 am

I am not sure how this is realised in JFreeChart but I think it should be no problem:
have a look in:
http://xml.apache.org/batik/javadoc/org ... Agent.html

regrads
Akmal

Locked