-
Notifications
You must be signed in to change notification settings - Fork 30
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
Sort visible nodes at each hierarchy layer #4
Comments
Hi @djBirdman, thanks for using Thanks. |
Looking at the sugiyama docs, my understanding is that you're already using the correct coord accessor, and while decross can change the order of the layer, it's doing so to decross the graph edges and not to specifically order each layer. I noticed that What I have done is to work out the order and manually update the x-position of the nodes. First I added This works for my purpose, but realise it's a bit of a rough hack: I'm happy to share my additions if you're OK with the way I've done it. Will try and tidy it up a bit, comment etc. and also throw a bit more test data at it over the weekend. |
Hi @djBirdman, |
The use of d3-dag, unions and collapsible node works really nicely.
I'm new to d3 / d3-dag, so am wondering how to ensure the following:
NB: first thing I did was change y_sep to -50 instead of 50, to get the children sorting eldest-to-youngest (reading top to bottom) instead of the other way around.
The text was updated successfully, but these errors were encountered: