Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hexagons! #3

Open
BobHarper1 opened this issue Jun 2, 2017 · 0 comments
Open

Hexagons! #3

BobHarper1 opened this issue Jun 2, 2017 · 0 comments

Comments

@BobHarper1
Copy link

BobHarper1 commented Jun 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant