chartjs / chartjs/Chart.js

Chart no longer resizes correctly when enlarging the window

Open
#12,177 0 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

Previously, when resizing the browser window, the chart resized correctly in both directions.

### Current behavior

Now, the chart resizes only when the window is reduced, but it no longer enlarges when the window size increases.

### Reproducible sample

https://www.chartjs.org/docs/latest/charts/doughnut.html

### Optional extra steps/info to reproduce

This issue is visible in the documentation examples:

* [https://www.chartjs.org/docs/3.9.1/charts/doughnut.html](https://www.chartjs.org/docs/3.9.1/charts/doughnut.html)
* [https://www.chartjs.org/docs/latest/charts/doughnut.html](https://www.chartjs.org/docs/latest/charts/doughnut.html)

Simply resize the browser window to reproduce the problem.

### Possible solution

_No response_

### Context

_No response_

### chart.js version

4.5.1

### Browser name and version

_No response_

### 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.