-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Overlapped nodes in hierarchical layout #1631
Comments
That can indeed happen with force directed layouts. You can try to use non-physics based layouts, like in the following example: http://visjs.org/examples/network/layout/hierarchicalLayoutWithoutPhysics.html |
The full overlap was an older issue, which version of vis are you using? Regards
|
I use the most recent one (v.4.13.0). My problem didn't exist in the previous version (v.4.12.0). I tried disable physics but had no luck. Physics-based layout seems to provide a better graph since they will not overlap again after I dragged the overlapped node out of its initial position. |
I have the same problem here. |
Hi all, I've fixed this on the develop branch. Both your examples allowed me to find two different causes for this so thanks a lot! Regards |
@AlexDM0 i tried the I added an example here with the latest |
Hi, Thanks for catching this. Guess it was messed up after fixing another bug. Its a tricky system... It should be fixed on develop now. Regards |
Really awesome @AlexDM0 👍 I can only imagine how complex that was ... |
This looks fixes in the current version v4.16.1 |
Some nodes are overlapped after update to v.4.13.0. Please see https://jsfiddle.net/atima/dtmz8otj/
Node 11 appears behind node 12 (try dragging node 12 around and you should see node 11). I also expect node 7,8,9 to be in triangle (try dragging node 8).
I think the problem is in _setPositionForHierarchy (lib/network/modules/LayoutEngine.js). There is no overlapped nodes if I force doNotUpdate = true (that is identical to I roll back just this part to the previous version).
Could you fix this? or any suggestion about how to fix this is appreciated. I don't want to simply force doNotUpdate because it makes network.fit() weird.
Best regards.
The text was updated successfully, but these errors were encountered: