All examples By author By category About

harrisoncramer

Linking forces by Index vs. Name

I was learning how to created linked force charts for data that had was charted by name (as in Mike Bostocks example here: https://bl.ocks.org/mbostock/4062045) and data that was only mapped by index value. The first is preferable because the links are directly attached to the nodes by their names, rather than by their index values, which could change if the data is changed or remapped.