Skip to content
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

fix: correct typing for doughnut, pie, and polarArea charts #11521

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

DustinEwan
Copy link
Contributor

@DustinEwan DustinEwan commented Sep 28, 2023

fixes: #10896

This is a change to DoughnutAnimationOptions to base the interface off of AnimationSpec<"doughnut">.

This appears to be the correct choice as a few of the existing tests include animation options in various doughnut based charts and include properties such as delay and easing which are missing from DoughnutAnimationOptions but are present in the AnimationSpec interface.

Also includes a basic test that ensures that DoughnutAnimationOptions is fully assignable to ChartOptions<"doughnut">

@LeeLenaleee LeeLenaleee added the type: types Typescript type changes label Sep 28, 2023
@kurkle kurkle changed the title fix(#10896): correct typing for doughnut, pie, and polarArea charts fix: correct typing for doughnut, pie, and polarArea charts Nov 18, 2024
@kurkle kurkle closed this Nov 18, 2024
@kurkle kurkle reopened this Nov 18, 2024
@etimberg etimberg added this to the Version 4.4.7 milestone Nov 18, 2024
@etimberg etimberg merged commit 3a515d0 into chartjs:master Nov 18, 2024
7 checks passed
@DustinEwan
Copy link
Contributor Author

Holy cow! That's quite the lead time on getting this merged :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: types Typescript type changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typehinting ChartOptions seems broken for pie and doughnut
4 participants