<https://lh3.googleusercontent.com/-kk1qpTVrty4/WqkRcImRaiI/AAAAAAAAPYQ/bHW6alb8VcMCFlugYJ4tTETIk6TXRWyEwCLcBGAs/s1600/growing-node-stack.PNG>

<https://lh3.googleusercontent.com/-kk1qpTVrty4/WqkRcImRaiI/AAAAAAAAPYQ/bHW6alb8VcMCFlugYJ4tTETIk6TXRWyEwCLcBGAs/s1600/growing-node-stack.PNG>
Having same issue, can't reproduce exactly when hidden nodes start to stack 
up.
Sometimes page refresh helps and sometimes number of nodes propagates even 
faster.
Content of those tooltips have no apparent relation to input data.
LineChart, classic version, animation true, chart redraw can add up to 10 
hidden nodes.




On Friday, July 11, 2014 at 4:50:02 PM UTC+3, Daniel LaLiberte wrote:
>
> Yaniv,
>
> The growing extra hidden nodes would appear to be a bug, so thank for 
> speaking up about it.  The details of your chart and data could make a 
> difference here, so if you wouldn't mind, it would help if you could point 
> to a live page that demonstrates the problem.
>
> It might be that calling clearChart() will not help with this problem.  If 
> so, the only workaround I can think of would be to remove the extraneous 
> divs yourself.
>
>
> On Thu, Jun 26, 2014 at 9:54 PM, Andrew Gallant <[email protected] 
> <javascript:>> wrote:
>
>> You can call the chart's #clearChart method to remove it and all 
>> associated elements from the DOM.  A better solution, though, might be to 
>> reuse the same chart object instead of creating new ones on every draw.
>>
>>
>> On Thursday, June 26, 2014 9:03:53 PM UTC-4, Yaniv Kalfa wrote:
>>>
>>> I am using google chart for live data stream - i pull data and 
>>> draw/redraw it as a google chart. my problem is each time that a chart is 
>>> drawn it also adds 2 tooltip div to the DOM just before < /body>.
>>>
>>> I use the following to create basic chart:
>>>
>>> [code]
>>>
>>> google.setOnLoadCallback(darw);var cleanData = new 
>>> google.visualization.DataTable();
>>> cleanData.addColumn("bla bla", "oneBla");// not important for the question
>>> cleanData.addRow("blaa", "bla");// not important for the question
>>> function darw(){
>>>     var chart = new 
>>> google.visualization.LineChart(document.getElementById('chart_div'));
>>>     chart.draw(cleanData, {});}
>>>
>>> [/code]
>>>
>>> The code that is being added to the DOM looks like:
>>>
>>> [code]
>>>
>>> <div style="position: absolute; display: none;">
>>>     <div style="background: none repeat scroll 0% 0% infobackground; 
>>> padding: 1px; border: 1px solid infotext; font-size: 12px; margin: 12px; 
>>> font-family: Arial;">soome data</div></div>
>>>
>>> [/code]
>>>
>>>
>>> My question is. is there a way to "destroy" a chart or something alike 
>>> to get rid of that extra DOM because after like 1 minute of that shenanigan 
>>> i have like 300-400 hidden extra nodes. 
>>>
>> -- 
>> 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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/86a5a35b-662d-4a97-8152-7162dbb963c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to