-
Notifications
You must be signed in to change notification settings - Fork 12k
Allow control of the doughnut chart radius #6882
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
Conversation
Adds a new option, `radiusPercentage` that shrinks the outside radius of doughnut / pie charts. A percentage is used to enable more flexibility during responsive conditions.
|
Maybe this should be called |
|
I'm not sure I get the use case. |
|
I don't think multiple pies per canvas is something I'd want to do. It seems like it'd be a lot more complex for a few small use cases. I could make this into a padding option. It'd be inside the chart area only. From the original issue, it was unclear if users wanted pixels or percentages. I went with a percentage to match the |
|
I think if we made this a |
|
This looks fine to me other than maybe the option name. What did you guys think about it? |
|
I too dislike having 'percentage' in the option name. Both options should be changed to be consistent through. One option would be to use only |
|
Yeah, keeping "percentage" out of the name is a good point too. My main thought was to call it |
The name is consistent with other options currently, so if we want to change those then its can be done in another PR. This should be merged, IMO. |
|
I don't have strong feeling about it. If you'd like to merge that's okay with me. It will need to be rebased though |
|
Going to close this. I'm sure there's a better way to achieve this |
Adds a new option,
radiusPercentagethat shrinks the outside radius of doughnut / pie charts. A percentage is used to enable more flexibility during responsive conditions.Closes: #3923