Geochart: onreadystatechange error in IE 11

156 views
Skip to first unread message

Simius

unread,
Oct 4, 2016, 3:53:16 PM10/4/16
to Google Visualization API
Dear all,

with IE 11 the below code produces the error: Object doesn't support this action delete a.onreadystatechange [Line: 137, Col: 203], loader.js

google.a.c.jd=function(a,c){if(c)if("undefined"===typeof a.onload){var d=!1;a.onreadystatechange=function(){d||(a.readyState&&a.readyState!==K?google.a.c.window.setTimeout(a.onreadystatechange,0):(d=!0,delete a.onreadystatechange,google.a.c.window.setTimeout(c,0)))}}else a.onload=c};

The weird thing is that the problem appears only if I load the page from a remote server (wherever is my local host or a hosting service) and not if I load it directly from disk!

I'm completely lost at fixing it...any suggestion is welcome!
Thank you very much!


<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type='text/javascript'>


google.charts.load('upcoming', {packages: ['geochart']});
google.charts.setOnLoadCallback(drawVisualization);


  function drawVisualization() {
var data = new google.visualization.DataTable();

data.addColumn('string', 'Country');
data.addColumn('number', 'Value'); 
data.addColumn({type:'string', role:'tooltip', p: {html: true}});

data.addRows([[{v:'Iraq',f:'Iraq'},0,'<a href="http://www.pippo.com">Iraq</a>']]);
data.addRows([[{v:'Nigeria',f:'Nigeria Northen Region'},1,'Nigeria Northen Region']]);
data.addRows([[{v:'Botswana',f:'Southern Africa Region'},2,'Southern Africa Region']]);
data.addRows([[{v:'South Sudan',f:'South Sudan'},3,'South Sudan']]);
data.addRows([[{v:'Lebanon',f:'Syria'},4,'Syria']]);
data.addRows([[{v:'Yemen',f:'Yemen'},5,'Yemen']]);


var options = {
forceIFrame : false,
backgroundColor: {fill:'#FFFFFF',stroke:'#FFFFFF' ,strokeWidth:0 },
colorAxis:  {minValue: 0, maxValue: 6,  colors: ['#FFB536','#FFB536','#FFB536','#FFB536','#FFB536','#FFB536',]},
legend:  'none',
backgroundColor: {fill:'#FFFFFF',stroke:'#FFFFFF' ,strokeWidth:0 },
datalessRegionColor: '#CBEEF5',
displayMode: 'markers', 
enableRegionInteractivity: 'true', 
resolution: 'countries',
sizeAxis: {minValue: 1, maxValue:1,minSize:13,  maxSize: 13},
region:'002',
keepAspectRatio: true,
width:450,
height:400,
tooltip: {textStyle: {color: '#444444'}, trigger:'selection', isHtml: true}
};
var chart = new google.visualization.GeoChart(document.getElementById('visualization')); 


chart.draw(data, options);
}
 
 </script>
 
 <div id='visualization'></div>

Daniel LaLiberte

unread,
Oct 5, 2016, 7:24:28 PM10/5/16
to Google Visualization API
This definitely sounds like a bug we should try to fix or workaround.  Unfortunately, I am on vacation now until Oct 13. 
Until I can fix it, you may be able work around this bug by loading version '44' instead of 'current'.

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/5d316923-24ab-4036-bd64-1de81362841d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Haim Bracha

unread,
Oct 26, 2016, 7:11:33 AM10/26/16
to Google Visualization API
Hi Daniel.,

I am facing the same issue
can you estimate when the problem will fixed?


Thanks,
Haim
To post to this group, send email to google-visua...@googlegroups.com.



--

Daniel LaLiberte

unread,
Oct 26, 2016, 11:06:19 AM10/26/16
to Google Visualization API
I am working on some other changes to the loader, so I will try to include a fix for IE11 as well.  

If you can avoid the requirement for geocoding by specifying lat-long positions instead of names of locations, that would avoid the dynamic loading of geodata that triggers the problem. 


To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.



--

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages