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

Interactions怎么滚动到最新或者最右边的日期呢 #11

Closed
jeruik opened this issue Jan 28, 2021 · 2 comments
Closed

Interactions怎么滚动到最新或者最右边的日期呢 #11

jeruik opened this issue Jan 28, 2021 · 2 comments

Comments

@jeruik
Copy link

jeruik commented Jan 28, 2021

默认开始都是从最左边开始,需要滑到最右边,才能看到今天的数据

@entronad
Copy link
Owner

Interaction 滚动的本质是改变 scale 的 range。而你在定义中设置的初始 range 决定初始时默认的位置。

像这样写:


是 0 这端对齐,即初始是最左边,该例要想初始在最右边将 range 设为 [-1, 1] ,即 1 这端对齐。

@jeruik
Copy link
Author

jeruik commented Jan 29, 2021

非常感谢,

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