Half pie chart #1012
-
Hi, I am trying to draw a half pie chart. I tried using startAngle, set to -90 and endAngle, set to 90. I would like this kind of result : https://datavizproject.com/wp-content/uploads/2016/06/DVP_1_100-76.png Is it possible with Visx ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @GoldenIvan, yes this is possible but const HALF_PI = Math.PI / 2;
<Pie
// ...
startAngle={-HALF_PI}
endAngle={HALF_PI}
/> Here's a demo: https://codesandbox.io/s/eloquent-bush-gbvxi |
Beta Was this translation helpful? Give feedback.
-
Bonjour, Merci pour le retour rapide ! C'est effectivement la solution. |
Beta Was this translation helpful? Give feedback.
Hi @GoldenIvan, yes this is possible but
startAngle
andendAngle
need to be radians.Here's a demo: https://codesandbox.io/s/eloquent-bush-gbvxi