Skip to content

Commit

Permalink
refactor(Vis View): ♻️ Force Directed Graph: Soften Many-Bodies repul…
Browse files Browse the repository at this point in the history
…ison force
  • Loading branch information
SkepticMystic committed Aug 15, 2021
1 parent dd1d41e commit e4b8a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Visualisations/ForceDirectedG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const forceDirectedG = (
"link",
d3.forceLink(links).id((d) => d.id)
)
.force("charge", d3.forceManyBody())
.force("charge", d3.forceManyBody().strength(-6))
.force("center", d3.forceCenter(width / 2, height / 2).strength(0.5));

const drag = (simulation: d3.Simulation<any, undefined>) => {
Expand Down

0 comments on commit e4b8a89

Please sign in to comment.