Spaces:
Running
Running
Update modular_graph_and_candidates.py
Browse files
modular_graph_and_candidates.py
CHANGED
|
@@ -746,7 +746,7 @@ node.append('text')
|
|
| 746 |
|
| 747 |
const sim = d3.forceSimulation(graph.nodes)
|
| 748 |
.force('link', d3.forceLink(graph.links).id(d => d.id).distance(520))
|
| 749 |
-
.force('charge', d3.forceManyBody().strength(-
|
| 750 |
.force('center', d3.forceCenter(W / 2, H / 2))
|
| 751 |
.force('collide', d3.forceCollide(d => 50));
|
| 752 |
|
|
@@ -1167,7 +1167,7 @@ const sim = d3.forceSimulation(timeline.nodes)
|
|
| 1167 |
.force('link', d3.forceLink(timeline.links).id(d => d.id)
|
| 1168 |
.distance(d => d.cand ? 200 : 300)
|
| 1169 |
.strength(d => d.cand ? 0.1 : 0.3))
|
| 1170 |
-
.force('charge', d3.forceManyBody().strength(-
|
| 1171 |
.force('collide', d3.forceCollide(d => 70).strength(1))
|
| 1172 |
|
| 1173 |
// Very strong chronological X positioning for proper horizontal spread
|
|
|
|
| 746 |
|
| 747 |
const sim = d3.forceSimulation(graph.nodes)
|
| 748 |
.force('link', d3.forceLink(graph.links).id(d => d.id).distance(520))
|
| 749 |
+
.force('charge', d3.forceManyBody().strength(-1200))
|
| 750 |
.force('center', d3.forceCenter(W / 2, H / 2))
|
| 751 |
.force('collide', d3.forceCollide(d => 50));
|
| 752 |
|
|
|
|
| 1167 |
.force('link', d3.forceLink(timeline.links).id(d => d.id)
|
| 1168 |
.distance(d => d.cand ? 200 : 300)
|
| 1169 |
.strength(d => d.cand ? 0.1 : 0.3))
|
| 1170 |
+
.force('charge', d3.forceManyBody().strength(-1600))
|
| 1171 |
.force('collide', d3.forceCollide(d => 70).strength(1))
|
| 1172 |
|
| 1173 |
// Very strong chronological X positioning for proper horizontal spread
|