-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[charts] PieChart position #14032
Comments
@JCQuintas could you take this one? |
Hi @sshologin , could you provide a code example using https://codesandbox.io/ or https://stackblitz.com/ ? Otherwise you could try removing the margin to center the chart. <PieChart
...
margin={{ right: 0 }}
/> We also have an issue already that is similar to this. Where we intend to allow positioning the chart in center/left/right. Which could be helpful in the future: #13787 |
Seems like it was sort of bug, but I changed nothing and now it works really well, I really don't know what happened Margin right 0 is also good solution for me
Also it says that faded and highlighted are deprecated symbol |
Glad it worked for you. You can use |
@sshologin: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: (required)
Current behavior
I tried removing
cx
,cy
, setting width, but it seems that it doesn't work at all. Maybe any props to centerPieChart
?Expected behavior
No response
Context
Is it possible to make
cx
andcy
props to be calculated automatically, based on the width of the screen? The problem is that without those props thePieChart
is not centered in the containerThat's what I have now
That's how it looks on
1200px
Without
cx
andcy
it looks like thisSearch keywords: piechart
The text was updated successfully, but these errors were encountered: