Javascript examples for Google Chart:Geo Chart
US Metro regions on google chart geo map
<html> <head> <title>Geo Chart Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1','packages':['geochart']}]}"></script> <div id="regions_div" style="width: 900px; height: 500px;"></div> <script type="text/javascript"> google.setOnLoadCallback(drawRegionsMap); function drawRegionsMap() {/* w w w . j a v a 2 s . c o m*/ var data = google.visualization.arrayToDataTable([ ['Country', 'Popularity'], ['803', 200], ['807', 300], ['862', 400] ]); var options = { displayMode:'regions', region:'US-CA', resolution:'metros' }; var chart = new google.visualization.GeoChart(document.getElementById('regions_div')); chart.draw(data, options); } </script> </body> </html>