List Info

Thread: Defining styles and javascript events for SVG graph




Defining styles and javascript events for SVG graph
user name
2008-07-04 09:21:54
Hello!

I found Graphviz last week and got really interested, it suits very well for what I need to do.
Congratulations for this nice work.

I have some questions for which I couldn';t find an answer myself.

I'd like to generate some sort of dynamic image so it could be more attractive.
I saw you generate SVG output, what's quite good and could help me, if at least I could define the style and events for the objects. I saw the "stylesheet"; attribute, but it alone doesn't help because the svg comes with inline style elements for the ellipses and other objects, so overriding the "node" or "edge" classes doesn't allow me to change the node colors etc (for instance, to add hovering).
I didn't find anyway to define events either. With events I could try to implement some special effects, like dragging for example.

Is there something I could do to accomplish that?

Thank you,
--
Tiago Rinck Caveden
http://caveden.multiply.com
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )