Skip to content

Instantly share code, notes, and snippets.

@bronze
Forked from gerryster/us_geo_chart_google
Last active August 29, 2015 14:00
Show Gist options
  • Save bronze/73a777fa27f472a61574 to your computer and use it in GitHub Desktop.
Save bronze/73a777fa27f472a61574 to your computer and use it in GitHub Desktop.
updating to BR view
// 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'],
['BR-RJ', 1.2],
['BR-SP', 1],
['BR-MG', 1],
['BR-RS', 0.8]
]);
var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
geochart.draw(data, {width: 556, height: 347, region: "BR", resolution: "provinces"});
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment