Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 添加一个setVisibleRange #430

Open
rascaler opened this issue May 19, 2023 · 2 comments
Open

[Feature] 添加一个setVisibleRange #430

rascaler opened this issue May 19, 2023 · 2 comments

Comments

@rascaler
Copy link

需求描述

如果加载图表数据过多的时候,我们想定位到某根K线或者定位到某片区域,拖动会比较麻烦耗时
希望提供一个设置可见范围setVisibleRange的api
定位一片区域:setVisibleRange(leftbar,rightbar)
定位一根bar并居中,setVisibleRange(middlebar)

具体实现

希望提供一个设置可见范围setVisibleRange的api
定位一片区域:setVisibleRange(leftbar,rightbar) ,定位后直接只显示区域中的bar
定位一根bar并居中,setVisibleRange(middlebar),定位后不放大缩小,将bar显示居中即可,可以先计算下当前区域范围bar的数量,重新生成新的区域范围并设置。(这个可加可不加)

@rascaler rascaler changed the title [Feature] [Feature] 添加一个setVisibleRange May 19, 2023
@oneart-dev
Copy link
Contributor

Same issue as mine #441, really necessary feature

@oneart-dev
Copy link
Contributor

@rascaler #441 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants