interactivethings / d3-grid

D3 grid layout
BSD 3-Clause "New" or "Revised" License
77 stars 10 forks source link

Smarter cols/rows ratio #2

Open jstcki opened 11 years ago

jstcki commented 11 years ago

Currently, if .cols() and .rows() aren't set, the layout tries to create an equal amount of columns and rows. The cols/rows ratio should probably rather be an approximation of the width/height of the grid.

vorg commented 9 years ago

+1. That would allow us to avoid unbalanced results like this