Skip to content

Instantly share code, notes, and snippets.

@cmoradi
Forked from gerryster/us_geo_chart_google
Created October 20, 2013 01:27
Show Gist options
  • Save cmoradi/7063746 to your computer and use it in GitHub Desktop.
Save cmoradi/7063746 to your computer and use it in GitHub Desktop.
// GeoChart from https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart
// Try out by pasting code into: https://code.google.com/apis/ajax/playground/?type=visualization#geo_chart
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['State', 'Foo Factor'],
['US-IL', 200],
['US-IN', 300],
['US-IA', 20],
['US-RI', 150]
]);
var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
geochart.draw(data, {width: 556, height: 347, region: "US", resolution: "provinces"});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment