apache / apache/echarts

[Bug] The k-line graph slides asynchronously to load data. After loading the next data, after setting the option, the startValue and endValue are retrieved again, which are different from the startValue and endValue when assigned in dataZoom,

Open
#21,413 2 comments 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

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=candlestick-simple

### Steps to Reproduce

Image

Image

Image

Image

Image

### Current Behavior

滚动加载到startvalue小于60时,获取下一页数据,数据成功后重新赋值开始startvalue是160,endvalue是189,setoption后,重新获取 const chartOption = todayEchartsInstance.getOption()
console.log("option1", chartOption)
let { startValue, endValue } = chartOption.dataZoom[0];startvalue和endvalue变成了121 和179,跟我设置的不一样了,复现是我滑动比较慢的时候会发生,如果我滑动k线比较快,就没有这个问题

### Expected Behavior

我希望设置的setvalue和endvalue,和我获取的setvalue和endvalue是一样的

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

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.