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
525 stars 140 forks source link

Support hover events #139

Open SDVII opened 2 years ago

SDVII commented 2 years 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