Skip to content

Instantly share code, notes, and snippets.

@yuu-nkjm
Created October 10, 2014 05:25
Show Gist options
  • Save yuu-nkjm/2643128fd3341f477c24 to your computer and use it in GitHub Desktop.
Save yuu-nkjm/2643128fd3341f477c24 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<script src="https://www.google.com/jsapi"></script>
<script>
google.load('visualization', '1', {packages:['geochart']});
google.setOnLoadCallback(graphChart);
function graphChart() {
var data = google.visualization.arrayToDataTable([['Country', 'Value'],['Dummy', 0]]);
var option = {
region: 'world',
};
var chart = new google.visualization.GeoChart(document.getElementById('chart'));
chart.draw(data, option);
}
</script>
<div id="chart"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment