This thread on the D3.js Google Group finally answered the question for me. I also changed my cluster to a tree. Hope this helps someone else with the same problem!
Drawing a D3.js cluster with the smallest possible height
-
06-03-2022 - |
Question
Is there a way to dynamically set the height of a D3.js cluster so that it will have the smallest height possible (i.e. the smallest height before the edges of the dendrogram begin to get cut off or nodes start overlapping)?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow