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

添加Scrollbar后数据从尾部开始渲染 #4735

Closed
Naticholio opened this issue Mar 7, 2023 · 1 comment
Closed

添加Scrollbar后数据从尾部开始渲染 #4735

Naticholio opened this issue Mar 7, 2023 · 1 comment

Comments

@Naticholio
Copy link

版本 "@antv/g2": "4.2.8"
以时间条形图为例,缩小页面并添加Scrollbar

chart.option("scrollbar", {
  type: "vertical",
  animate: false,
});

image
数据变成了从尾部开始渲染
image

一般的滚动条不应该是从头部开始渲染的么
image

@Naticholio
Copy link
Author

源码 中的数据反转注释了就好了

不知道会不会有啥问题,暂时没出现问题

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

1 participant