react-d3-radar icon indicating copy to clipboard operation
react-d3-radar copied to clipboard

Straight lines / hexagones

Open redouane59 opened this issue 6 years ago • 2 comments

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 avatar Dec 02 '17 11:12 redouane59

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

shauns avatar Dec 11 '17 14:12 shauns

Thank you very much !

The library is awesome, I hope you keep working on it !

See you

2017-12-11 15:28 GMT+01:00 Shaun Stanworth [email protected]:

Hi @redouane59 https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shauns/react-d3-radar/issues/9#issuecomment-350739230, or mute the thread https://github.com/notifications/unsubscribe-auth/AESsLIJXC2WyDpklrCpLKUceRnT0UlYeks5s_Tv4gaJpZM4QzR0N .

-- Redouane Bali 06.62.58.06.64

redouane59 avatar Dec 11 '17 18:12 redouane59