interactivethings / d3-grid

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

If both rows and cols are fixed, what happens if there are too many nodes? #3

Open jstcki opened 11 years ago

jstcki commented 11 years ago

E.g. if we have .cols(2).rows(2), where does the 5th node go? Repeat at 0,0? Create more rows (or columns)?

grossbart commented 11 years ago

Not that CSS is the best language to steal from, but could .overflow('cols') or .minRows(2) be something? I don't really like these suggestions, but they might get you somewhere…

If I set both dimensions, I think I'd expect items that don't fit to be hidden, otherwise I'd just set one of the two dimensions.