Skip to content

Commit

Permalink
from freelancer
Browse files Browse the repository at this point in the history
  • Loading branch information
bhpayne committed Jun 14, 2020
1 parent dafcf16 commit 3f5b75b
Show file tree
Hide file tree
Showing 3 changed files with 914 additions and 1 deletion.
2 changes: 1 addition & 1 deletion v7_pickle_web_interface/flask/templates/_d3_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
.force("link", d3.forceLink(label.links).distance(0).strength(2));

var graphLayout = d3.forceSimulation(graph.nodes)
.force("charge", d3.forceManyBody().strength(-3000))
.force("charge", d3.forceManyBody().strength(-3000)) // strength of clustering; -1000 is very tight; -6000 is loose
.force("center", d3.forceCenter(width / 2.5, height / 2)) // skew left since images are on the right of the node center
.force("x", d3.forceX(width / 2).strength(1)) // increasing strength makes the oval tall and skinny
.force("y", d3.forceY(height / 2).strength(1))
Expand Down
Loading

0 comments on commit 3f5b75b

Please sign in to comment.