Created
April 9, 2021 04:05
-
-
Save devjoca/b13262f6e3ad293d910fdef2643c3079 to your computer and use it in GitHub Desktop.
Revisions
-
devjoca created this gist
Apr 9, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const simulation = d3 .forceSimulation() .force( "link", d3 .forceLink() .id(function (d) { return d.name; }) .strength(0.015) .distance(15) ) .force("charge", d3.forceManyBody().strength(-400)) .force('collide', d3.forceCollide() .radius(1)) .force("center", d3.forceCenter(width / 2, height / 2));