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

后端 未结 3 2027
孤街浪徒
孤街浪徒 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:06

    If you want interactive graphs then graphviz might not be the best choice.

    I'd recommend having a look at D3.js. Perhaps you could construct the graph data in json and load them with D3?

提交回复
热议问题