Skip to content

Setting responsiveAnimationDuration causes flicker on resize #5354

@JMoli

Description

@JMoli

Expected Behavior

The animation should execute without a flicker.

Current Behavior

On resize event the canvas will flicker and then the animation will follow.

Steps to Reproduce (for bugs)

https://codepen.io/elisescolaro/pen/YaGyMW

Context

If you have multiple charts on a single page (with lots of other scripts) this becomes extremely noticeable.

Environment

  • Chart.js version: 2.7.2
  • Browser name and version: Chrome

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