Hi all, I use geomap in my website, and there is no outpout when I add any records in the datatable.
<html> <head> <script type='text/javascript' src='http://www.google.com/jsapi'></ script> <script type='text/javascript'> google.load('visualization', '1', {'packages': ['geomap']}); google.setOnLoadCallback(drawMap); function drawMap() { var data = new google.visualization.DataTable(); data.addRows(0); data.addColumn('string', 'Country'); data.addColumn('number', 'Popularity'); var options = {}; options['dataMode'] = 'regions'; var container = document.getElementById('map_canvas'); var geomap = new google.visualization.GeoMap(container); geomap.draw(data, null); }; </script> </head> <body> <div id='map_canvas' style="width: 800px; height: 600px;"></div> </body> </html> the graph appears only when there is data. Any idea?? thanks in advance. -- 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.
