Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

hierarchical layout too wide on initial #1910

Closed
farseerfc opened this issue Jun 14, 2016 · 1 comment
Closed

hierarchical layout too wide on initial #1910

farseerfc opened this issue Jun 14, 2016 · 1 comment

Comments

@farseerfc
Copy link

farseerfc commented Jun 14, 2016

Hi I am using vis.js to build a package virtualizer: https://github.com/farseerfc/pacvis/
I found it very hard to stabilize when there are more than 100 nodes. I tried to disable physics and found that the initial layout by hierarchical layout engine is too wide for 100 nodes. I created a jsfiddle:
https://jsfiddle.net/dhmpq9dL/

Here is a hierarchical layout only 74 nodes with custom levels, and physics is disabled. On my screen I can see the resulted image like this:
screenshot_20160615_031313

If I add more nodes, the initial layout became too wide to stabilize by physics. How can I fix this?

Edit:
Found out that I can remove this line https://github.com/almende/vis/blob/master/lib/network/modules/LayoutEngine.js#L868 and this line https://github.com/almende/vis/blob/master/lib/network/modules/LayoutEngine.js#L870 , then the layout worked as desired and I can scale to more than 1000 nodes with physics enabled.

@farseerfc
Copy link
Author

Sorry I found that this issue have already been reported #1735 and #1804 and #1813 . Close this one for now.

@almende almende locked and limited conversation to collaborators Oct 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants