Skip to content

Instantly share code, notes, and snippets.

@conraddecker
Created June 1, 2012 18:46
Show Gist options
  • Save conraddecker/2854324 to your computer and use it in GitHub Desktop.
Save conraddecker/2854324 to your computer and use it in GitHub Desktop.
Geochart
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['Country', 'Popularity'],
['Milwaukee', 200],
['Cook', 300],
['Dane', 700]
]);
var options = {
region: 'US-WI',
displayMode: 'markers',
colorAxis: {colors: ['green', 'blue']},
resolution: 'metros',
width: 500,
height: 500
};
var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
geochart.draw(data, options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment