Small layout adjustment.

This commit is contained in:
Kia Lam
2022-02-23 12:37:20 -08:00
parent 7ebf6b77e5
commit 7fbab6760e
2 changed files with 6 additions and 13 deletions

View File

@@ -59,12 +59,11 @@ function MeshGraph({ data, showLegend, zoom, setShowZoomControls }) {
const graph = data;
const simulation = d3
.forceSimulation(graph.nodes)
.forceSimulation()
.nodes(graph.nodes)
.force(
'charge',
d3
.forceManyBody(MESH_FORCE_LAYOUT.defaultForceBody)
.strength(MESH_FORCE_LAYOUT.defaultForceStrength)
d3.forceManyBody().strength(MESH_FORCE_LAYOUT.defaultForceStrength)
)
.force(
'link',