echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[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 wb18734673668 opened this issue 2 weeks ago • 1 comments

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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

wb18734673668 avatar Dec 08 '25 02:12 wb18734673668