vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.72k stars 829 forks source link

force node without link #490

Open trimbilrepo opened 3 years ago

trimbilrepo commented 3 years ago

Hi, Is there any way to push node without link far away from the center? or with specific distance? tried to implement forceRadial but doesn't know how make it work.

Thank you

vasturiano commented 3 years ago

@trimbilrepo you can try playing around with the setting for the charge force (forceManyBody), such as strength and distanceMin.

You can access it like this:

myGraph.d3Force('charge').distanceMin(100)
trimbilrepo commented 3 years ago

thank you @vasturiano let check and play with it....