Skip to content

[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, #21413

@wb18734673668

Description

@wb18734673668

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions