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

big data #3

Closed
m2faridi opened this issue Nov 11, 2020 · 2 comments
Closed

big data #3

m2faridi opened this issue Nov 11, 2020 · 2 comments

Comments

@m2faridi
Copy link

this lib good for big data?
10k items

@entronad
Copy link
Owner

entronad commented Nov 14, 2020

As we have tested:
For line/area, more than 10k (even up to 100k) data items is quite OK;
But for point/interval, more than 1k, the rendering can be significantly slow.

This is because for line/area, only one polyline/polygon RenderShape object is created, no matter how many data items there are.
But for point/interval, we have to create RenderShape objects for all data items.

This is enough for most Flutter apps, because for big data we always use a line/area chart.
No designer allows a chart crowded with 10k bars :)

@entronad
Copy link
Owner

entronad commented Dec 4, 2020

We investigated the rendering process and find that the _sort() function in group.addShape() is the main time consumming part, especially for big data.
It is not a nessasary step when composing chart renderer nodes, so we removed it.
This greatly reduced the rendering time, now a chart with 10k points can be easilly rendered.
This uptate is in version 0.3.0

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