Boom! Problem solved.
Thanks!
On Friday, January 17, 2014 1:45:27 PM UTC-5, asgallant wrote:
> That is going to recreate the chart object every time the chart is drawn,
> which I suspect is the root problem. IE is probably not properly garbage
> collecting the old chart objects/chart code/event handlers, and you can
> offset some of that by reusing the same chart object. Move this line:
>
> var pieBOS = new
> google.visualization.PieChart(document.getElementById('chart_Server'));
>
> into the parent scope of the updating function. Here's an example of what
> I mean: http://jsfiddle.net/asgallant/vKqp6/3/
>
> On Friday, January 17, 2014 1:14:23 PM UTC-5, Kevin Buchan wrote:
>>
>> Thanks for your response. The developer is using the same code to
>> populate the graphs as update them.
>>
>> Here is the actual code (note that this jsFiddle won't work... it's just
>> for readability.)
>> http://jsfiddle.net/KevinBuchan/vKqp6/
>>
>>
>> On Friday, January 17, 2014 10:48:51 AM UTC-5, asgallant wrote:
>>
>>> When you redraw, are you feeding new data to the same instance of the
>>> chart object, or are you creating a new chart object each time? It would
>>> be helpful to see the refresh code as well.
>>>
>>> On Thursday, January 16, 2014 6:45:16 PM UTC-5, Kevin Buchan wrote:
>>>>
>>>> I have a process that runs through thousands of records over several
>>>> hours.
>>>>
>>>> There is a web page that uses AJAX calls to update a table and some
>>>> charts with the details of the progress, refreshing every 15 seconds. If
>>>> I
>>>> have the charts commented out, while the page is waiting for the timer to
>>>> kick off another refresh, the CPU utilized by that instance of IE is
>>>> almost
>>>> nothing. However, when the code to populate the charts is enabled, the
>>>> CPU
>>>> goes to 18%, then within a few minutes it's at 50% and stays there.
>>>>
>>>> This is a sample of one of the charts. There are two pie charts and a
>>>> bar chart. The only thing I changed is that the data is hard coded, but
>>>> is
>>>> sampled from the actual page.
>>>>
>>>> http://jsfiddle.net/KevinBuchan/WmN5z/
>>>>
>>>> Do I need to delete the DOM object and recreate it before each refresh
>>>> or something? This has been really confused and looking to change
>>>> charting
>>>> tools, but generally I like everything about Google.
>>>>
>>>> Thanks for any help.
>>>>
>>>> -Kevin
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.