Skip to content

Half pie chart #1012

Answered by hshoff
maximerivolet asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GoldenIvan, yes this is possible but startAngle and endAngle need to be radians.

const HALF_PI = Math.PI / 2;

<Pie
  // ...
  startAngle={-HALF_PI}
  endAngle={HALF_PI}
/>

Here's a demo: https://codesandbox.io/s/eloquent-bush-gbvxi

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hshoff
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants