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

动态添加数据时,放大y轴,出现跳跃 #5499

Open
wt12 opened this issue Jan 6, 2025 · 3 comments
Open

动态添加数据时,放大y轴,出现跳跃 #5499

wt12 opened this issue Jan 6, 2025 · 3 comments

Comments

@wt12
Copy link

wt12 commented Jan 6, 2025

1
2
第一张图是我拖动到我想看的区域,第二张图是在我拖动后,当新的点加入后,图表自动到了最顶部

@wt12
Copy link
Author

wt12 commented Jan 6, 2025

在添加完数据后,执行了以下代码
lineData.notifyDataChanged();
lineChart.notifyDataSetChanged();
lineChart.moveViewToX(dataIndex);

@wt12
Copy link
Author

wt12 commented Jan 6, 2025

找到方法了,完结

@Apples0609
Copy link

@wt12 分享下解决方案,谢谢

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