d3 / d3-force

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

Give links strength and distance #179

Closed nitzanorchestra closed 4 years ago

nitzanorchestra commented 4 years ago

I want to set links strength to 0, yet to have min distance to them, is that possible?

Fil commented 4 years ago

A link with strength 0 is as good as no link. Have you looked at forceCollide instead?

PS: To ask for help, please use the Stack Overflow tag d3.js instead. Thousands of D3-related questions have been asked there, and some answers may be relevant to you.

nitzanorchestra commented 4 years ago

Collide is not good for me, I want the link to be visually in some length and then allow it to lengthen.

(I prefer to use github than stackoverflow because I don't like stackoverflow policy).