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

Non-centered parent node #116

Closed
devmsh opened this issue May 14, 2018 · 3 comments
Closed

Non-centered parent node #116

devmsh opened this issue May 14, 2018 · 3 comments

Comments

@devmsh
Copy link

devmsh commented May 14, 2018

Hi!

Is it possible to draw a hierarchy tree where parent not centered based on the children nodes, we need to have the children in the right side or lift side of the parent?

We review the online examples, source code, without any success!

@mikol-styra
Copy link

I think we have the same requirement as @devmsh (if I understand him correctly). We want to lay the tree out with the root node at the top left and all descendants cascading down (never up) and to the right. Looking at the d3-hierarchy source, it seems like we’d need to implement a custom layout. Perhaps there are already 3rd-party layouts that do this?

@mikol-styra
Copy link

Found this: https://bl.ocks.org/mbostock/1093025

@Tommos0
Copy link

Tommos0 commented Jun 19, 2018

Do you mean something like this maybe: https://github.com/VisualStorytelling/d3-hierarchy/blob/7312254d45355fad2720cad2a6f31d1f3ae05660/img/gratzl.png ? I just opened a pull request for this kind of layout

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

No branches or pull requests

3 participants