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

Memory leak when frequently updating line graph #44

Open
GoogleCodeExporter opened this issue Jun 4, 2015 · 2 comments
Open

Memory leak when frequently updating line graph #44

GoogleCodeExporter opened this issue Jun 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Running ELYCHARTS v2.1.5 on a Windows 7 OS

Starting with the line graph that is used as an example on the webpage, I made 
little modification except to have a fill underneath one of three lines.

I update the graph and call $("#chart").chart('clear'); and then issue the 
drawChart command every .5 seconds to have the webpage update with current 
values of the data. 

The lines each have 10 points.  Two of the lines maintain constant values for 
their data to show "thresholds."  I am really only concerned with updating the 
data for the third line.

When I run this program, it appears to have a bit of a problem hogging the 
processor and the values from the graph lag behind the values that are sent to 
the webpage, and it becomes very slow after about 11-12 minutes.  The page is 
very slow then and will eventually become entirely unresponsive.

Any thoughts on what I can do to release memory or somehow more gracefully 
produce a graph that changes as time passes?

Thank you.

Original issue reported on code.google.com by [email protected] on 15 May 2015 at 3:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant