klinecharts / KLineChart

📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)

Home Page:https://klinecharts.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] 指标的回传参数 visibleRange.from 不准确

walkerxin opened this issue · comments

版本

9.1.3 (9.0.0+版本都发现此问题)

复现步骤

  1. 在指标的 draw 方法中打印 visibleRange.from
draw: ({ ctx, indicator, visibleRange, defaultStyles }: any) => {
    console.log(visibleRange.from, visibleRange.to)
}
  1. 拖动指标到 右边空缺,看打印日志

当前效果

visibleRange.from不准确

预期效果

如上图,获取到的 from 应该是 8045

环境

- 系统:
- 浏览器:
- 框架:

补充说明

No response

commented

v9.2.0