react-diagrams
react-diagrams copied to clipboard
Dagre node ranking
I am able to use dagre to auto position nodes, however I am not sure how to get the ranking of the nodes correctly. I would like "Path B" node to be at the same rank as "Path A".
@renato-bohler @pierre-moire , would you have any idea how to fix this? Thank you.
No idea, I've never used dagre :confused:
Same, sorry. I use custom layout algorithms
@pierre-moire, oh cool, how do you go about building that?
All elements in my chart have a pre-defined place based on their level and index so each time an event is triggered I re-run a function that lists node and for each one moves it with animation to its final place. Nothing really comparable to dagre or another overlap avoiding algorithm
I am able to use dagre to auto position nodes, however I am not sure how to get the ranking of the nodes correctly. I would like "Path B" node to be at the same rank as "Path A".
HI!!
Have you had any updates on this issue?