Skip to content

Ability to set the animation "key" in bar chart for more intuitive animations #1997

Description

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

What problem does this feature solve?

Adding values between other values results in a confusing animation.

eg:

  • Starting values: [2,3,4]
  • New Values: [2,10,3,4] (10 is the new value here)

In this case:

  • the value 3 will grow to 10
  • the value 4 will shrink to 3
  • A new value will appear on the right as 4

It would be more "sensible" for:

  • a new value to appear between 2 and 3
  • accordingly:
    • 3 to move to the right
    • 4 to move to the right

What does the proposed API look like?

<Bar animationId={animationIdFunction} />

Where animationIdFunction:

  • takes (value, index), and returns a unique key.
  • default is index

Metadata

Metadata

Assignees

No one assigned

    Labels

    animationIssues regarding animationenhancementEnhancement to a current API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions