Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -241,10 +241,11 @@ const links = meta.edge_source_index.map((s, i) => {{
241
 
242
  // D3 force simulation parameters tuned for mobile friendliness
243
  const simulation = d3.forceSimulation(nodes)
244
- .force("link", d3.forceLink(links).id(d => d.id).distance(80).strength(0.8))
245
- .force("charge", d3.forceManyBody().strength(-150))
246
  .force("collision", d3.forceCollide().radius(d => d.r * 0.6))
247
- .force("center", d3.forceCenter(0,0));
 
248
 
249
  // Keep track of whether to keep sim running
250
  let stopSimulation = false;
 
241
 
242
  // D3 force simulation parameters tuned for mobile friendliness
243
  const simulation = d3.forceSimulation(nodes)
244
+ .force("link", d3.forceLink(links).id(d => d.id).distance(130).strength(0.4))
245
+ .force("charge", d3.forceManyBody().strength(-60))
246
  .force("collision", d3.forceCollide().radius(d => d.r * 0.6))
247
+ .force("center", d3.forceCenter(0,0))
248
+ .velocityDecay(0.45);
249
 
250
  // Keep track of whether to keep sim running
251
  let stopSimulation = false;