christophergandrud / networkD3

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

add feature to draw arrowheads on directed links #182

Closed cjyetman closed 7 years ago

cjyetman commented 7 years ago

This PR adds the arrows argument to forceNetwork(). If TRUE, arrowheads will be drawn at the end of directed links. Additionally, in all cases this PR adjusts the link length so that it stops at the edge of the nodes instead of at the center of nodes.

This PR resolves issues #99, #71, #47, and #7... as well as many other suggestions/requests elsewhere, such as Stack Overflow.