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

bottom to top? #12

Closed
doohab opened this issue Apr 8, 2019 · 3 comments
Closed

bottom to top? #12

doohab opened this issue Apr 8, 2019 · 3 comments

Comments

@doohab
Copy link

doohab commented Apr 8, 2019

I know setting horizontalLayout to false will present tree vertically from top to bottom, but can I start from bottom to top? like real tree?
Where first parent starts at the bottom of a div then growing up.

@PierreCapo
Copy link
Owner

Hello @doohab !
Interesting, right now it's not possible to do it.
I will try to look this night if I can implement this feature in the current API.

@PierreCapo
Copy link
Owner

Sadly, it is harder than what I thought since the d3 library doesn't handle trees in a reverse orientation : d3/d3-hierarchy#63 (you can try to bump this issue since it is rather old). I have tried to make it work quickly on my repository on this branch by adding a reverseOrientation key when configuring the tree, but it is a bit buggy and I don't recommand you to use it in production: #16

@doohab
Copy link
Author

doohab commented Apr 9, 2019

Thank you for taking time on this. I tried the other branch, but I don't know why nothing changes. Anyways, here is something interesting. I'm not sure how to implement this.

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