Skip to content

"responsive" option problem since v4 #11005

@ghost

Description

Expected behavior

Chart should be resized when window size changes. (now it resizes only when scaling to smaller resolution)

Current behavior

I am using "responsive" option to resize chart based on it's parent container size.
Everything works while scaling window size down, but when it comes to changing window resolution to larger one that doesn't work.

Reproducible sample

https://codepen.io/ouqu5/pen/ZEjEPqm

Optional extra steps/info to reproduce

  1. Resize window to mobile/tablet (chart resizes properly)
  2. Resize it back to full screen (chart is not resized)

Possible solution

No response

Context

No response

chart.js version

4.1.1

Browser name and version

No response

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