d3-grid icon indicating copy to clipboard operation
d3-grid copied to clipboard

D3 grid layout

Results 8 d3-grid issues
Sort by recently updated
recently updated
newest added

This pull request upgrade `d3-grid` code to d3v4. **This is still a work in progress and should not be merged yet** ## Goals ### Upgrade to d3v4 : e2714ad `x...

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...

That would allow it to be more node/browserify friendly and do ``` javascript var d3 = require('d3'); var gridLayout = require('d3-grid')(d3); ```

It can be helpful for a node to know its row and column, for example, to look up information specific to that row or column, for use in a tooltip,...

I'm very new to this stuff, so please educate me if there's a better way. That said, I found that I wanted to put labels beside the x and y...

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

Yes, but needs more consideration. E.g. how should col and row indices, and `.points()` vs. `.bands()` be treated? Food for thought: http://www.redblobgames.com/grids/hexagons/