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

Improve load time #14

Open
jxmot opened this issue Dec 16, 2020 · 3 comments
Open

Improve load time #14

jxmot opened this issue Dec 16, 2020 · 3 comments
Assignees
Labels
investigating Issue is being investigated, will need to determine overall effort vs reward and all risks involved. Mid Priority

Comments

@jxmot
Copy link
Owner

jxmot commented Dec 16, 2020

The primary slow-down is caused by the Apex Charts js file. It's 1 meg in size. Try minifying it for non-development use.

@jxmot jxmot added the investigating Issue is being investigated, will need to determine overall effort vs reward and all risks involved. label Dec 16, 2020
@jxmot jxmot self-assigned this Dec 16, 2020
@leeoniya
Copy link

@jxmot
Copy link
Owner Author

jxmot commented Dec 18, 2020

@leeoniya Thanks! I will certainly take a close look at uPlot. I like what you've done and it seems like it would work well for my application.

On a side note of sorts, can uPlot scroll the chart? For example in a "live data" scenario can uPlot scroll the start point of the chart to the left as new data is added?

@leeoniya
Copy link

leeoniya commented Dec 19, 2020

setData (data updates) and setScale (scroll/zoom) are independent ops, so it's possible to attain whatever behavior is needed:

https://leeoniya.github.io/uPlot/demos/stream-data.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Issue is being investigated, will need to determine overall effort vs reward and all risks involved. Mid Priority
Projects
None yet
Development

No branches or pull requests

2 participants