All right, Lars helped me find a solution.
I started by customizing the .charge()
to something more appropriate. The function is below, provided there's this type="f"
in your code:
.charge(function(d) {
if (d.type === "f") { return -50;
} else { return -700;
}
})
Then, and just for design purposes, I changed the .linkDistance
following the same method.
.linkDistance(function(d) {
if (d.type === "f") { return 5;
} else { return 30;
}
})
Here's the result: