Yes, this is indeed a bug. It will be fixed in our next release, which is planned to be pushed in less than a month.
On Fri, Dec 16, 2011 at 11:25 PM, moli <[email protected]> wrote: > I couldn't get the select event to work in IE. Don't know if it is a > bug or I did something wrong. Here is my code: > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8" / > > > <title>Google Visualization API Sample</title> > <script type="text/javascript" src="http://www.google.com/jsapi"></ > script> > <script type="text/javascript"> > google.load('visualization', '1', {packages: ['geochart']}); > > function drawVisualization() { > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Country'); > data.addColumn('number', 'area'); > data.addColumn('number', 'Popularity'); > data.addRows([ > ['Vancouver', 2761477, 1285.31], > ['Nelson,US', 1324110, 181.76], > ['London', 959574, 117.27], > ['Hartland', 907563, 130.17], > ['Manning', 655875, 158.9], > ['Whitehorse', 607906, 243.60] > ]); > var options = { > region: 'CA', > width:556, > height:347, > displayMode: 'markers', > resolution:'provinces', > colorAxis: {colors: ['green', 'blue']} > }; > > var geochart = new google.visualization.GeoChart( > document.getElementById('visualization')); > geochart.draw(data, options); > > google.visualization.events.addListener(geochart, 'select', > selectHandler); > > function selectHandler(e) { > var selection = geochart.getSelection(); > var row=selection[0].row; > alert('You selected ' + data.getValue(row,0)); > } > } > google.setOnLoadCallback(drawVisualization); > </script> > </head> > <body style="font-family: Arial;border: 0 none;"> > <div id="visualization"></div> > </body> > </html> > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
