Open maximegheraille opened 4 years ago
@maximegheraille you can set starting positions on the nodes if you want to help the layout. You just need to add x, y
attributes to the nodes objects you'd like to pre-set. Otherwise the force engine will assign sequential positions in a phylotaxis arrangement, which is why it may end up with line crossings after unfolding.
@vasturiano that is the problem I don't actually want to use x, y attributes. I was hoping it was possible to change the behavior without the attributes but i guess ovoiding overlapping links is not possible without using those attributes?
Hello @maximegheraille , did you manage to fix this issue? Playing with d3-forces to removes these links overlaps is giving me a headache, wondering if I can avoid having to set the x,y positions myself.
@jrmartin Hi, I haven't worked with this in a long time, but I remember that I had to manually save all nodes positions before closing them and reuse them when they open again.
Describe the bug Some children node's are not correctly grouped with each other.
To Reproduce Steps to reproduce the behavior: https://codesandbox.io/s/dazzling-hermann-vyuyb?fontsize=14&hidenavigation=1&theme=dark
Expected behavior The children 26 and 29 should be in front of their parent. Child 28 should also not be that far away and should be next to 26. Number 8 should be in front of his parent number 2
is there a way to control that behaviour ? because it is makes the graph a lot more complex to look at and use
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):