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

help about performance issues about line charts #2881

Closed
wx-liubin opened this issue Oct 15, 2017 · 1 comment
Closed

help about performance issues about line charts #2881

wx-liubin opened this issue Oct 15, 2017 · 1 comment

Comments

@wx-liubin
Copy link

I should get the data from background and display in the line charts, about 10240 data should update each time, but it seems that redraw is very slow, the refresh code is like below

view.data?.notifyDataChanged()
view.notifyDataSetChanged()
view.setNeedsDisplay()

anything wrong with this code?

@liuxuan30
Copy link
Member

it will be slow for sure. Currently there is no better options but reduce your data sets by sampling.

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