chartjs / chartjs/Chart.js

[Regression] rotateAnimation on doughnut charts missing in Chart.js 4.5.1 (Firefox only; worked in 4.5.0)

Open
#12,151 2 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

There is a regression introduced in Chart.js v4.5.1 relating to doughnut chart animations on Firefox. The rotateAnimation appears correctly in v4.5.0 on both Chrome and Firefox. However, after upgrading to v4.5.1, the rotateAnimation is missing only in Firefox. Chrome continues to display the animation as expected. Firefox should still animate.

### Current behavior

The chart appear static.

| Version | Browser | Works? |
|--------|--------|--------|
|4.5.0 | Chrome | ✔️ Yes|
|4.5.0 | Firefox | ✔️ Yes|
|4.5.1 | Chrome | ✔️ Yes|
|4.5.1 | Firefox | ❌ No|

### Reproducible sample

https://jsfiddle.net/wsnze2gx/

### Optional extra steps/info to reproduce

comparison with the 4.5.0 : https://jsfiddle.net/wgqcoh57/

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.5.1

### Browser name and version

Firefox 144.0.2

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.