I can't understand how the squarifyRatio works #3569
Unanswered
officialBusiness
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
d3-hierarchy => treemap => squarify.js
I don't know what
alpha
andbata
mean, why alpha isMath.max(dy / dx, dx / dy) / (value * ratio)
and beta issumValue * sumValue * alpha
.I also want to know why ratio is
Math.max(maxValue / beta, beta / minValue)
I've learn about squarify's algorithm briefly, but I don't understand how your code implements the length allocation of child nodes on an edge.
I'm tired. hlep
Beta Was this translation helpful? Give feedback.
All reactions