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] Zoom parameter in ChartEvent.ts

char101 opened this issue · comments

Version

Steps to Reproduce

I think this line in

https://github.com/liihuu/KLineChart/blob/main/src/ChartEvent.ts#L152

Current Behavior

this._chart.getChartStore().getTimeScaleStore().zoom(scale, { x: event.x, y: event.y })

should be

Expected Behavior

this._chart.getChartStore().getTimeScaleStore().zoom(scale, zoomCoordinate)

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response