Skip to content

Wrong animation interpolation when adding datapoints #1961

Description

@danlkv
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Press 'add data' and observe point "page C"

What is expected?

Shape of parts of curve is not changed during animation, only the curve as a whole affine-transformed

What is actually happening?

Line segments dancing, curve is animated as if data is added from left side

Environment Info
Recharts v2.0.0-beta.1
React 16.12.0
System Arch
Browser chrome / firefox

This bug causes strange animation when updating plots with large data https://imgur.com/mRpJbv9

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Feature requests or future priority issuesanimationIssues regarding animationbugGeneral bug labelenhancementEnhancement to a current API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions