[Bug] The restore function seems to restore the data to the first assigned value.
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.5.1
### Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/temperature-change-in-the-coming-week-forked-mfpnqh
### Steps to Reproduce
Open the page for two seconds and click the restore button
### Current Behavior
The chart is reduced to the state of the first assigned data
### Expected Behavior
The data in the chart should be the last value assigned.
### Environment
```markdown
- OS:Windows 11
- Browser:Edge 130.0.2849.80
```
### Any additional comments?
_No response_
Contributor guide
Research direction
Start by opening the linked CodeSandbox reproduction with ECharts 5.5.1, wait two seconds, click the restore button, and inspect how the chart data changes. Trace the restore entry point and compare the first and last assigned data values; done means restore uses the last assigned value and the reproduction no longer shows the chart reverting to its initial data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100