I want to make a tree where the same thing can be listed multiple times, and on mouseover all of the same thing will expand or light up or something. What I can't figure out is how to do this. My initial thought was to use a line like
.attr("class", function(d){return d})
but that didn't seem to work. If anybody has any ideas about how to do this it would be much appreciated. The tree for example may look like
Food
Vegtables
Carrot
Pizza
Tastes good
Cake
Pizza
I would want to be able to make it so that if i hover over pizza once in my tree both of them will do the same on mouseover action.