Semi Pie Chart taking up to much space? #3846
Answered
by
ckifer
yusuf8ahmed
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ckifer
Oct 13, 2023
Replies: 1 comment 15 replies
-
hey @yusuf8ahmed, this is going to be difficult to help with without a reproduction. Could you make a minimal codesandbox? |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay I pulled this down and took a look.
Basically recharts piechart does not currently adjust when the size of the chart itself changes. The size of the screen yes, but since you are only rendering 180 to 0 (half a circle) the container is still assuming you are taking up double that space.
commenting out your startAngle/endAngle makes that relatively evident.
If you want you can create a separate issue that details this, sorry for the inconvenience!
A hacky way to get around it for now is to add a whole lot of negative bottom margin (like -250)