christophergandrud / networkD3

D3 JavaScript Network Graphs from R
http://christophergandrud.github.io/networkD3
652 stars 268 forks source link

Possible to show node labels text of linked nodes? #264

Closed Jesse-Kerr closed 5 years ago

Jesse-Kerr commented 5 years ago

I find the ability to make node labels opaque very helpful when I have a great deal of nodes. But I am looking for a method that only shows the labels of the nodes connected to a node that you have just clicked on. This would make those other nodes pop out a bit more and make it easier to see the connections.

Thank you.

cjyetman commented 5 years ago

There's no built-in way to do this. One would have to modify the internal mouseover and mouseout functions

cjyetman commented 5 years ago

here's a solution on Stack Overflow