christophergandrud / networkD3

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

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

Closed Jesse-Kerr closed 4 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 4 years ago

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

cjyetman commented 4 years ago

here's a solution on Stack Overflow