Skip to content

Commit 701abfe

Browse files
committed
More decay prevents nodes from flying away
1 parent 31e93e4 commit 701abfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_App/BotAnalysis/Networks/Graph2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ForceTree = ({ data }) => {
5757
linkColor={() => 'rgba(255,255,255,0.2)'} // todo: source opinion color
5858
linkDirectionalParticles={2}
5959
linkDirectionalParticleWidth={2}
60-
d3VelocityDecay={0.3}
60+
d3VelocityDecay={0.6} // lower numbers push the nodes farther and faster from eachother (keep large to prevent red bots from flying off screen)
6161
/>
6262
}
6363

0 commit comments

Comments
 (0)