-
Notifications
You must be signed in to change notification settings - Fork 1.5k
A layout bug with no clue of reasons #2297
Comments
Here is the codes of the problem example in my github: |
Here is the running example: http://jsbin.com/bavojuy/1/edit?output |
@mojoaxel thanks, any idea of the reasons of this? |
No, layouts are quite complicated. I'll played around with your data and stumbled over multiple issues. I simply have not the time to get into the network layouting. Maybe we can find the problems over time and create simple demos to isolate them. |
From the jsbin:
The issues are fixed by pending PR #3017. The resulting network now looks like this: This is much more structured and compact. But I'll admit I miss the elegant curves of the original a bit. |
Closing, duplicate of #1735. |
As the img above shows, some nodes are distributed very far away from others in horizontal. Any body know the reason of this sick layout?
I have a really complicated tree structure data, each node can has multiple parents and multiple children, and the image above only show few of the edges. If I include all edges, the results will be just a line and when I zoom in, all results are gone as following image shows.
My option setting as follows:
layout: {
hierarchical: {
enabled:true,
levelSeparation: 250,
treeSpacing:10,
nodeSpacing:150,
direction: "DU",
sortMethod: 'directed'
}
},
The text was updated successfully, but these errors were encountered: