Gun Deaths
Per 100,000 people in the US and Japan (2013)
HTML
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<h2>
Gun deaths per 100,000 people in the US and Japan in 2013:
</h2>
<div id="chart_div"></div>
<h2>
<a href='http://www.vox.com/policy-and-politics/2015/12/4/9850572/gun-control-us-japan-switzerland-uk-canada'>Vox representation of the same data:</a>
</h2>
<iframe src="//apps.voxmedia.com/at/vox-gun-homicide-rate-in-the-us-and-japan-in-2013/?initialWidth=755&childId=vox-gun-homicide-rate-in-the-us-and-japan-in-2013__graphic" width="640px" scrolling="no" marginheight="0" frameborder="0" height="640px"></iframe>
JavaScript
google.charts.load('current', {packages: ['corechart', 'bar']});
google.charts.setOnLoadCallback(drawBasic);
function drawBasic() {
var data = google.visualization.arrayToDataTable([
['Country', '',],
['United States (3.5)', 3.5],
['Japan (0.01)', 0.01]
]);
var options = {
title: 'Gun deaths per 100,000 people in the US and Japan in 2013',
chartArea: {width: '69%'},
height: 640,
width: 640,
hAxis: {
title: '',
//minValue: 0,
//maxValue: 100000
},
vAxis: {
title: '',
minValue: 0.001,
maxValue: 100000
}
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
chart.draw(data, options);
}