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

Is there a way to supply a custom ranker or fix the layout in the rank axis? #289

Open
rikkertkoppes opened this issue Mar 16, 2020 · 2 comments

Comments

@rikkertkoppes
Copy link

My use case is to layout a graph in time. Every node in my graph is associated with a timestamp (and duration), which is always consistent with the edge direction (edges always point in positive time direction).

Hence, I'd like to use that timestamp for ranking, or, alternatively, use the timestamp as the x coordinate (and duration as the width). Dagre would then figure out the best y-coordinate to minimize edge crossings.

@richardwestenra
Copy link

richardwestenra commented Mar 18, 2020

PR #271, which is closed (for some reason), would allow you to supply custom node ranking. I would like to reopen it, because it would solve a problem for me as well (custom layers that affect the layout in the rank axis).

@lutzroeder what do you think?

@j6k4m8
Copy link

j6k4m8 commented May 7, 2020

I have the exact same use case (points live along a timeline). Would love to reopen 271 if possible.

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

Successfully merging a pull request may close this issue.

3 participants