d3.geo2rect icon indicating copy to clipboard operation
d3.geo2rect copied to clipboard

Hexagons!

Open BobHarper1 opened this issue 7 years ago • 0 comments

If it is useful to others who are looking to transform to other shapes, I have edited the code to create d3.geo2recthex, which means you can morph to a hexagonal grid pattern.

All you need to do is add shapes: 'hex' to your config (if config.shapes is not used the default remains 'rect').

You don't need to make changes to your grid layout - the pattern offset for hexagons is taken care of.

BobHarper1 avatar Jun 02 '17 11:06 BobHarper1