[Bug] Line chart animation inconsistency on options change

Open
#21,542 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
angular, typescript

Research direction

No source files or tests are named. Reproduce the issue with a line chart whose series data changes through an options update, then compare its animation with the initial load and the bar-chart behavior. Done means updated line-chart data animates from left to right after the options change.

Written by the indexing model from the issue text.

Description

bug en pending
Version

6.0.0

Steps to Reproduce
  1. Create any form of line chart
  2. Update the options with a different set of data for the series dynamically, for eg: on click of a button
Current Behavior

On initial load, line chart's lines animate from left to right and bar chart's bar animate from bottom to top. When the options change, the bar chart's animation, the same as initial load happens from bottom to top but that doesn't seem to be the case for line charts, the lines update immediately without any animation like it happens on initial load

Expected Behavior

when the options change for line charts, the lines should animate from left to right, the same way it happens on initial load

Environment
- OS:macOS latest
- Browser: Chrome latest
- Framework: Angular latest
Any additional comments?

Please refer to the below screen recording showcasing the initial load of a line chart and a bar chart and a difference between options change for a line chart and a bar chart: https://jam.dev/c/0753696c-aa54-4e90-a890-3acba41d4ff6

Dominant language
TypeScript
Stars
67.7k
Forks
19.9k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/echarts

All issues in apache/echarts

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.