Accepted answer

According to the documentation for d3.tree ( d3 adds a parent attribute to each node. In your mouseover callback, you could traverse up the tree and set a value on each node indicating that it should be highlighted (i.e. d.highlight = true). Then have your update/render code check that value to conditionally apply whatever classes/styles you want.

Related Query

More Query from same tag