Also tested and It works fine, altough it throws a js error. You can try and set a doctype <!DOCTYPE HTML> for example and change https://www.google.com/jsapi to http://www.google.com/jsapi Probably this was not the problem, but you can try.
Quinta-feira, 25 de Outubro de 2012 20:03:31 UTC+2, Vitor dos Reis escreveu: > > Hello, > > This code it's ok at Chrome but won't works in IE9. > > What's wrong? Thanks > > <html> > <head> > <script type='text/javascript' src='https://www.google.com/jsapi > '></script> > <script type='text/javascript'> > google.load('visualization', '1', {'packages': ['geochart']}); > google.setOnLoadCallback(drawMarkersMap); > > function drawMarkersMap() { > var data = google.visualization.arrayToDataTable([ > ['string', 'City', 'Value'], > ['PT-01', 'Aveiro', 60], > ['PT-02', 'Beja', 9], > ['PT-03', 'Braga', 8], > ['PT-04', 'Braganca', 4], > ['PT-05', 'Castelo Branco', 4], > ['PT-06', 'Coimbra', 26], > ['PT-07', 'Evora', 8], > ['PT-08', 'Faro', 33], > ['PT-09', 'Guarda', 20], > ['PT-10', 'Leiria', 26], > ['PT-11', 'Lisboa', 107], > ['PT-12', 'Portalegre', 7], > ['PT-13', 'Porto', 80], > ['PT-14', 'Santarem', 30], > ['PT-15', 'Setubal', 57], > ['PT-16', 'Viana do Castelo', 8], > ['PT-17', 'Vila Real', 4], > ['PT-18', 'Viseu', 27] > ]); > > var options = { > region: 'PT', > resolution: 'provinces', > displayMode: 'auto', > colorAxis: {colors: ['#f2ff00', '#fc6000', '#a00000', '#700000']} > }; > > var chart = new > google.visualization.GeoChart(document.getElementById('chart_div')); > chart.draw(data, options); > }; > </script> > </head> > <body> > <div id="chart_div" style="width: 700px; height: 500px;"></div> > </body> > </html> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/KOxPhpQOiMgJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.