Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for ability to set rank level for node for dagre mode #2790

Closed
alyuev opened this issue Apr 4, 2021 · 2 comments
Closed

Request for ability to set rank level for node for dagre mode #2790

alyuev opened this issue Apr 4, 2021 · 2 comments

Comments

@alyuev
Copy link

alyuev commented Apr 4, 2021

  • G6 Version:
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

It will be good to have ability to set rank level for node for dagre mode. Like it has visjs.
Look at https://visjs.github.io/vis-network/docs/network/nodes.html
and find there:

"level | Number | undefined | When using the hierarchical layout, the level determines where the node is going to be positioned."

I think "rank level" will be the same as "level" option in visjs.

The exapmple of defferent level here:
https://visjs.github.io/vis-network/examples/network/layout/hierarchicalLayoutUserdefined.html

Node 2 on the next level, not as 10, 7, 12.

@Yanyan-Wang
Copy link
Contributor

The dagre algorithm in G6 depends on https://github.com/dagrejs/dagre, the ranks are calculated automatically and not assignable in this lib. Same issue in dagrejs/dagre: dagrejs/dagre#289

@Yanyan-Wang
Copy link
Contributor

duplicated to #2245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants