apache / apache/echarts

[Bug] Line chart animation inconsistency on options change

Open
#21,542 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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

```markdown
- 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](https://jam.dev/c/0753696c-aa54-4e90-a890-3acba41d4ff6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.