simulation = d3
.forceSimulation(n2j.features)
.force(
"x",
d3.forceX().x(f => projection(f.geometry.coordinates)[0])
.strength(positionStrength)
)
.force(
"y",
d3.forceY().y(f => projection(f.geometry.coordinates)[1])
.strength(positionStrength)
)
.force(
"collide",
d3
.forceCollide()
.radius(f => collisionPadding + toRadius(+sizeDataIndex[f.properties.id]))
.strength(collisionStrength)
)