example below when i put a separator (br element) after the separator
\n
Okay I pulled this down and took a look.
\nBasically 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.
\ncommenting out your startAngle/endAngle makes that relatively evident.
\nIf you want you can create a separate issue that details this, sorry for the inconvenience!
\nA hacky way to get around it for now is to add a whole lot of negative bottom margin (like -250)
\n
-
Beta Was this translation helpful? Give feedback.
-
|
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.
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)