Closed mbostock closed 13 years ago
I'm seeing something like this too: https://github.com/jasondavies/d3/tree/treemap-bug (see the treemap-svg example).
It also occurs with zero padding and with the code prior to padding being added. It seems like the rounding error correction is a likely culprit, but I haven't managed to figure it out yet.
Nice, thanks for the reproducible example! We should be able to plug this into the treemap-test and figure out a solution.
Looks like there are three instances of negative widths/heights, and three overflowing cells, so these may be related.
Need to investigate… saw some fishy cases, negative sizes.