Skip to content

Chart keeps on shrinking uncontrollably #12076

@mani-96

Description

@mani-96

Expected behavior

Chart should not resize unnecessarily

Current behavior

Chart keeps on shrinking if Zoom levels are changed or re-rendered. I am using primeng, so I thought this might be a bug with their component. But I was able to replicate it on chartjs official web page. Attached a video for the same.

Reproducible sample

https://www.chartjs.org/docs/latest/samples/bar/border-radius.html

Optional extra steps/info to reproduce

Screen.Recording.2025-05-20.184923.mp4

Possible solution

No response

Context

No response

chart.js version

4.4.9

Browser name and version

Chrome Version Version 136.0.7103.114 (Official Build) (64-bit) / Microsoft Edge Version 136.0.3240.76 (Official build) (64-bit)

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions