d3 force directed layout – link distance priority
If I understand correctly, I believe there is a potential solution. To get link distance to be accurate, you need to set charge and collision forces to zero, but as your image suggests, then nodes aren’t spaced in a way that accounts for other nodes, just those nodes which they share links with. As d3.force … Read more