d3/d3-hierarchy

why the result of use d3.pack is not equal with the wikipedia

FEliuyg opened this issue · 1 comments

when the size of data is 5 or 12, the pack result is not expected。
when i use d3.pack(), the demo result is like this,
this is trend to one side, i hope they are on both size.
the wikipedia result is that i want.

You’ll need a different algorithm if you want different results.