force-graph icon indicating copy to clipboard operation
force-graph copied to clipboard

Cross over of links (edges) in dag mode

Open karthik-krishna opened this issue 4 years ago • 2 comments

Describe the bug When in dag mode., links that connects one node to another, crossover or overlap on each other, I am using forcecollide and nodes are far and separate from each other. however links overlap or cross over, I even tried making warmupTicks to 1000 and played around with cooldownticks as well. Nothing helped

To Reproduce Steps to reproduce the behavior: Set the graph to load in dag mode ex: dagmode('td'), and links cross over if there are more number of nodes.

Expected behavior Links should not cross over

Screenshots

image

Desktop (please complete the following information):

  • Browser [e.g. chrome]

karthik-krishna avatar Jan 15 '21 18:01 karthik-krishna

Try messing around with the link forces, you will want that to be stronger to get the links to pull the nodes the links connect closer to eachother. The nodes are locked on the y-axis so they will try to move below the source node.

https://github.com/vasturiano/d3-force-3d#forceLink

Alexithemia avatar Jan 18 '21 15:01 Alexithemia

Hello @karthik-krishna , did you find a solution for this issue? I'm having the same problem.

jrmartin avatar Aug 30 '21 18:08 jrmartin