Skip to content

Element animations in a vertical chart don't use the base pixel of the value scale #9087

@nagix

Description

@nagix

Expected Behavior

When a vertical line chart is being loaded, elements should appear on the vertical base line (x = 0, if 0 is in the scale range) and animate along the x axis.

Current Behavior

Elements appear on the horizontal base line (y = 0, if 0 is in the scale range) and animate along the y axis.

Screen Shot 2021-05-13 at 11 10 40 PM

Possible Solution

When the positions of line and point elements are reset, set them based on the base value on the value axis, not the x axis.

Steps to Reproduce

https://jsfiddle.net/nagix/r80e6pn7/

Environment

  • Chart.js version: 3.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions