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

Sorting nodes by “height” before computing a layout. #26

Closed
mbostock opened this issue Mar 26, 2016 · 0 comments
Closed

Sorting nodes by “height” before computing a layout. #26

mbostock opened this issue Mar 26, 2016 · 0 comments
Assignees

Comments

@mbostock
Copy link
Member

The problem is that the root isn’t constructed until you call treemap(data), which makes it hard to use the node API to compute things like node height. So… maybe we should change the hierarchical layouts to once again take a node as input rather than data, and use node.clone if you don’t want to mutate the data.

@mbostock mbostock self-assigned this Mar 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant