This is my first foray into d3 forces and transitions. I’ve cobbled together something that allows me to add or remove nodes (circles with text) based on a slider, but I’ve not been able to get the force simulation to trigger automatically when the set of nodes change. That’s the main problem for which I’m requesting help.
Secondly, when I manually refresh the simulation cell, the resulting positions of the nodes are not at all what I expect, based on the forces that I think I am appplying. It may be a matter of experimenting with the strengths or other parameters of the forces, but I really need to get the simulation to trigger automatically first, so that I can see the results of the forces as I experiment with them.
Although I’m mainly seeking help to get the simulation running, I would also welcome any suggestions about how to choose appropriate forces to achieve the desired effect that I describe in the “Plan” section of the notebook.