christophergandrud / networkD3

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

Overlapping nodes on hierarchical network graphs #164

Open stevegrubb opened 7 years ago

stevegrubb commented 7 years ago

First, thanks for all the time and effort to create and maintain networkD3! I was wondering if it would be possible to pass a parameter to add a "charge" to nodes to force more separation? (Apparently D3.js allows this.) If you look at the dendro or diagonal network examples on the home page, there is crowding and overlapping of the end nodes. I don't mind unlimited height or width. Also, there is a linkcolor parameter, could there also be a linksize or thickness parameter? Thanks!

cjyetman commented 7 years ago

The "charge" parameter is only relevant/available in D3 force networks, not in the dendro/tree layouts. However, adjusting the spacing between leaf nodes in the tree layouts is certainly possible.

cjyetman commented 7 years ago

treeNetwork supersedes diagonalNetwork, dendroNetwork, and radialNetwork. need to determine if this is still an issue with treeNetwork