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

Controlling nodes positions #356

Closed
pmario26 opened this issue Feb 13, 2019 · 2 comments
Closed

Controlling nodes positions #356

pmario26 opened this issue Feb 13, 2019 · 2 comments

Comments

@pmario26
Copy link

pmario26 commented Feb 13, 2019

Hi, i'm working on a project with dagre-d3 and would like to know if in the current lib version is there any way i can control the position of some nodes, to keep then not only together (like clustering do) but also mostly alligned together.
For example,in the picture below the selected nodes are grouped together inside the cluster, but they are still scattered.
graph_before

What i would like to do is to draw these nodes in a single line, alligned together instead of scattered,like this:
graph

Is there anyway i can achieve that with the current version of the lib ?
If not, how could i go about changing the lib to achieve that ?

@pmario26
Copy link
Author

I have reseached past issues and found some old threads that are related to my issue.
dagrejs/dagre#201
#64
Are these fixes still possible in the current version of dagre ?
I think that being able to control the ranks of nodes would also help, but this feature appears to have been deprecated.

@mmazanec22
Copy link

@pmario26 did you end up figuring this out? I'm in a similar situation-- need to stagger nodes at same level into separate rows so the text inside is readable on mobile

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