Are there event listeners to detect mouse clicks on dot/SVG graph?

后端 未结 3 2058
孤街浪徒
孤街浪徒 2021-01-21 16:36

I am playing with generating dot files and then turned them into SVG graphs with a lot of nodes.

My question is that are there event listeners to detect mouse clicks on

3条回答
  •  孤独总比滥情好
    2021-01-21 17:17

    There are several ways to create an interactive SVG graph:

    • Use SMIL, an extension to svg (Example tutorial http://apike.ca/prog_svg_smil.html)
    • Javascript (the Raphael library is excellent)
    • CSS animations

    In any case, you'll have to display the svg graphs in a client which supports any of those technologies (browser), and you will have to code it in addition to the svg output graphviz creates.

提交回复
热议问题