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

Add ability to customize tree layout #66

Closed
Misiu opened this issue Nov 15, 2016 · 2 comments
Closed

Add ability to customize tree layout #66

Misiu opened this issue Nov 15, 2016 · 2 comments

Comments

@Misiu
Copy link

Misiu commented Nov 15, 2016

For small trees default layout engine works fine, like in this example, but for larger trees (especially with many child nodes) default layout takes so much place.

I'd like to be able to specify type of layout for child nodes, to get this behavior.

So instead of
n4koi

I would get this layout
haoft

I found this question on StackOverflow, but it is from 3 years ago so maybe something new was added that would allow this layout.

yFiles Organization Chart is ideal example of layout I have in mind.

Main idea is to "pack" items together and display as much as possible without need to scroll horizontally.

@mbostock
Copy link
Member

I’ve no plans to implement this, but you’re of course welcome to fork the existing hierarchy layouts or implement you own. Good luck!

@Misiu
Copy link
Author

Misiu commented Jun 26, 2017

snap 2017-06-26 at 11 21 48

This was quite easy to build, however I'm thinking about rewriting this after #62, #63 and #64 are fixed.

Also please consider adding example of how to extend a 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

2 participants