react-simple-pie-chart icon indicating copy to clipboard operation
react-simple-pie-chart copied to clipboard

clockwise

Open markbrown4 opened this issue 10 years ago • 2 comments

Pie segments are usually rendered clockwise, it can be flipped with a transform but I feel like clockwise should be the default and a prop to make it anti-clockwise if that's required.

<g transform={rotate(-90 ${center} ${center}) translate(0, ${size}) scale(1, -1)}>

markbrown4 avatar Nov 26 '15 01:11 markbrown4

I am agree, I just transformed the transform line from original code like this

{ transform: 'rotate(-90 ' + center + ' ' + center + ') translate(0, '+size+') scale(1, -1)' },

numerized avatar Mar 15 '16 09:03 numerized

+1

frenic avatar Jun 22 '16 18:06 frenic