Skip to content

Memory leak when frequently updating line graph #44

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions