Skip to content

animationDuration doesn't correctly define the duration of drag animation #450

@jledentu

Description

@jledentu

Hi, 👋

In the current master version, the animationDuration option doesn't work correctly. It only allows to enable/disable the animation on drag, but the duration is not taken into account.

In the code, the duration is set on chart.options.animation.zoom.duration, but it seems that we should set chart.options.transitions.zoom.animation.duration instead (I guess but I'm not sure to understand how transitions work in Chart.js 3).

By the way, I don't know if the animationDuration option is still needed since we can know customize the zoom transition in chart.options.animation.zoom?

  • chart.js 3.0.1
  • chartjs-plugin-zoom master

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