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

Straight lines / hexagones #9

Open
redouane59 opened this issue Dec 2, 2017 · 2 comments
Open

Straight lines / hexagones #9

redouane59 opened this issue Dec 2, 2017 · 2 comments

Comments

@redouane59
Copy link

redouane59 commented Dec 2, 2017

Hello,

Is it possible with this component to draw hexagones instead of circles like this example http://bl.ocks.org/chrisrzhou/2421ac6541b68c1680f8 ?

Thank you !

@redouane59 redouane59 changed the title domainMin / Straight lines Straight lines / hexagones Dec 2, 2017
@shauns
Copy link
Owner

shauns commented Dec 11, 2017

Hi @redouane59 - thanks for your interest in the library! I'm not going to be able to make a change to this just yet, but I can tell you how its done:

https://github.com/shauns/react-d3-radar/blob/master/src/RadarCircle.js#L52

Could be changed to:

import {radialLine, curveCardinalClosed, curveLinear} from 'd3-shape';
...
.curve(curveLinear)

The D3 docs are here too: https://github.com/d3/d3-shape#curves

@redouane59
Copy link
Author

redouane59 commented Dec 11, 2017 via email

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

3 participants
@shauns @redouane59 and others