Skip to content

Conversation

@mathbruyen
Copy link
Contributor

Doughnut chart ignores holeSize=0 as a falsy value and takes is default of 50.

Code now checks the type of holeSize to treat 0 as a number and display doughnuts with no hole at all.

This leads to a chart very similar to a pie chart, but means that we do not have to change chart type for the 0 special case.

Doughnut chart ignores holeSize=0 as a falsy value and takes is default
of 50.

Code now checks the type of holeSize to treat 0 as a number and display
doughnuts with no hole at all.

This leads to a chart very similar to a pie chart, but means that we do
not have to change chart type for the 0 special case.
@gitbrent gitbrent self-assigned this Nov 16, 2022
@gitbrent gitbrent added this to the 3.12.0 milestone Nov 16, 2022
@gitbrent gitbrent merged commit 1dea36e into gitbrent:master Jan 23, 2023
gitbrent added a commit that referenced this pull request Jan 23, 2023
@gitbrent
Copy link
Owner

Thanks @mathbruyen !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants