d3 / d3-force

Force-directed graph layout using velocity Verlet integration.
https://d3js.org/d3-force
ISC License
1.81k stars 376 forks source link

random is not a function error #182

Closed wunaidage closed 4 years ago

wunaidage commented 4 years ago

Hi, I encounter this error:

ERROR TypeError: random is not a function at jiggle.js:2 at apply (manyBody.js:81) at Quadtree.visit (visit.js:7) at force (manyBody.js:19) at simulation.js:56 at Map.forEach () at Object.tick (simulation.js:55) at layoutTick (force-graph.module.js:554) at Function.tickFrame (force-graph.module.js:540) at Function.comp. [as tickFrame] (kapsule.module.js:159)

I'm using https://github.com/vasturiano/force-graph but looks like this is a d3 error so I'm reporting here.

glenwid commented 2 years ago

How were you able to resolve this?