Molbap HF Staff commited on
Commit
d5a65e9
·
verified ·
1 Parent(s): 0c29070

Update modular_graph_and_candidates.py

Browse files
Files changed (1) hide show
  1. modular_graph_and_candidates.py +2 -2
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(-600))
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(-800))
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