almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.86k stars 1.48k forks source link

[Network] Hierarchical layout algorithm degradation #4023

Open floatingpurr opened 6 years ago

floatingpurr commented 6 years ago

I'm using version 4.21 and I'm trying to draw a quite huge tree (i.e., ~1k nodes, ~1k edges).

The problem is that I get something like this: (JSFiddle)

GitHub Logo

Instead of the following more ordered tree that I get with version 4.19 (JSFiddle)

GitHub Logo

Stackoverflow references:

YakovL commented 6 years ago

Although somewhat obvious, it's worth mentioning that this is about hierarchical layout (I suggest to put that into the title because this way it's much easier to find especially if a duplicate issue is created)

YakovL commented 6 years ago

I'd call this hierarchical layout algorithm degradation; took place between 4.19.1 and 4.20.0 according to Maciejg. Would be nice if this behaviour were at least switchable (to the previous one).

YakovL commented 5 years ago

Another such issue at SO, and for now the best thing I can recommend is

The easy way is to downgrade vis.js to 4.19.1.

The hard way is to analyse the changes between the versions, contribute to the issue by reproting what you have found, forking the repo and making some rollback about those changes (and may be making a pull request).

YakovL commented 5 years ago

Question about a similar problem at SO, just to note that the issue is topical

ynahmany commented 5 years ago

Hi, any update on this issue ? Thanks in advance!