I am testing out the force directed layout for some hierarchical tree data. But I am getting an issue with some of the larger nodes getting shot way, way off screen on the initial placement. I have tried manipulating the different parameters like electrical charge, gravity, and all of that with little success. I was hoping someone might be able to give me some pointers. I found some mentions of similar issues but that was from 10 years ago and the response was that the issue would be fixed in version 3.
I think my issue has to do with some nodes having very deep trees under them while other nodes are just direct to the top level parent with little to no children. I’ve attached a screenshot of what I am getting. Note that the lines going off to the top right go very, very far away. So far in fact, that upon initially loading the screen, I have it set to fit everything into the view so all nodes are completely invisible. It took me a while to figure out that I had to zoom way in before I could even start seeing the nodes at all.