-
Notifications
You must be signed in to change notification settings - Fork 314
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
Problems with the treemap Algorithem. #68
Comments
after playing a bit with the data, i found out the 0 is what makes the pile problem , why aren't 0 allowed? |
Unrelated to your issue (which I am investigating), but you don’t need d3.stratify to create a flat tree. You can use d3.hierarchy: var rootNode = d3.hierarchy({children: clonedData}).sum(d => d); |
Thank you for the quick fix, any date on the release? also using d3.hierarchy makes strange rect layout: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to follow the examples i met a strange glitch in the treemap code, can't seem to find the problem.
here is a fiddle with the problem:
https://fiddle.jshell.net/40xoLecy/
same code with different data works well:
https://fiddle.jshell.net/40xoLecy/3/
what seems to be the problem with the layout? why is it a a pile of rects?
The text was updated successfully, but these errors were encountered: