ErikGartner / dTree

A library for visualizing data trees with multiple parents, such as family trees. Built on top of D3.
https://treehouse.gartner.io/ErikGartner/58e58be650453b6d49d7
MIT License
509 stars 135 forks source link

Support hover events #139

Open SDVII opened 1 year ago

SDVII commented 1 year ago

Is it possible support other events such as mouse over on the nodes themselves?

m-miller commented 1 year ago

In the nodeClick callback I placed some jquery to handle click events on the nodes to show more information stored in the "extra" variable. Could be modified I guess to handle mouseover. $("body").on("click", "foreignObject", function(){. etc