Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

fix(#10896): correct typing for doughnut, pie, and polarArea charts

Open DustinEwan opened this issue 3 years ago • 0 comments

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">

DustinEwan avatar Sep 28 '23 16:09 DustinEwan