This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State | suicide-firearm | suicide-suffocation | suicide-poisoning | suicide-other | homicide-firearm | homicide-other | police-firearm | others | pct_with_firearms | |
---|---|---|---|---|---|---|---|---|---|---|
Wyoming | 56.6 | 13.8 | 13.2 | 2.8 | 5.9 | 5.5 | 0.4 | 1.8 | 66 | |
Idaho | 54.9 | 14.6 | 14.3 | 3.3 | 6.2 | 4.5 | 1 | 1.2 | 56 | |
Montana | 54.2 | 14.4 | 13.9 | 2.6 | 6.4 | 5.9 | 0.9 | 1.7 | 63 | |
West Virginia | 51.2 | 11.9 | 8.9 | 2.2 | 14.4 | 8.5 | 1 | 1.9 | 58 | |
Alaska | 49.5 | 17 | 8.1 | 2.5 | 13 | 8.1 | 0.7 | 1.1 | 60 | |
Vermont | 49.3 | 17.9 | 15.3 | 4.6 | 5.5 | 4.8 | 0.7 | 1.9 | 44 | |
North Dakota | 49.1 | 23.2 | 10.1 | 5.2 | 5.4 | 5 | 2 | 56 | ||
Kentucky | 48.7 | 13.1 | 8.6 | 2.4 | 17.2 | 8 | 0.6 | 1.4 | 48 | |
Maine | 46.9 | 18.7 | 16.3 | 5.9 | 5.4 | 4.5 | 1 | 1.3 | 40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State | suicide-firearm | suicide-suffocation | suicide-poisoning | suicide-other | homicide-firearm | homicide-other | police-firearm | others | |
---|---|---|---|---|---|---|---|---|---|
Wyoming | 56.6 | 13.8 | 13.2 | 2.8 | 5.9 | 5.5 | 0.4 | 1.8 | |
Idaho | 54.9 | 14.6 | 14.3 | 3.3 | 6.2 | 4.5 | 1.0 | 1.2 | |
Montana | 54.2 | 14.4 | 13.9 | 2.6 | 6.4 | 5.9 | 0.9 | 1.7 | |
West Virginia | 51.2 | 11.9 | 8.9 | 2.2 | 14.4 | 8.5 | 1.0 | 1.9 | |
Alaska | 49.5 | 17.0 | 8.1 | 2.5 | 13.0 | 8.1 | 0.7 | 1.1 | |
Vermont | 49.3 | 17.9 | 15.3 | 4.6 | 5.5 | 4.8 | 0.7 | 1.9 | |
North Dakota | 49.1 | 23.2 | 10.1 | 5.2 | 5.4 | 5.0 | 2.0 | ||
Kentucky | 48.7 | 13.1 | 8.6 | 2.4 | 17.2 | 8.0 | 0.6 | 1.4 | |
Maine | 46.9 | 18.7 | 16.3 | 5.9 | 5.4 | 4.5 | 1.0 | 1.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body style="width: 100%"> | |
<canvas width="960" height="500" style="margin-left: auto; margin-right: auto;"></canvas> | |
<script src="http://d3js.org/d3-timer.v0.3.min.js"></script> | |
<script src="http://d3js.org/d3-ease.v0.7.min.js"></script> | |
<script src="isometric.js"></script> | |
<script> | |
var canvas = document.querySelector("canvas"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var piecolors = d3.scale.category20c(); | |
var w = 600, | |
h = 460, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="ocks-org do-not-copy"> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="urbanizedpopulation.js"></script> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<script src="windchart.js"></script> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<!-- A refinement of http://bl.ocks.org/mbostock/3664049 with labeled graticules --> | |
<style> | |
.graticule { | |
fill: none; | |
stroke: #000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var svg, | |
width = 900, | |
height = 700; | |
var projection = d3.geo.equirectangular() | |
.rotate([-10,0]).scale(height/5).translate([width / 2, height / 2]).clipExtent([[0,0.1*height],[width,height*0.85]]); | |
var path = d3.geo.path() | |
.projection(projection); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Andr Aroo Cumb Frank Hancock Kenne Knox Linc Oxford Penob Pisca Sagada Somerse Waldo Washing York | |
var data = [99.6, 87.2, 97.8, 70.7, 80.7, 99.1, 98.0, 99.4, 94.5, 88.7, 46.1, 91.9, 79.8, 86.7, 88.5, 98.8 ]; | |
function pair(array) { | |
return array.slice(1).map(function(b, i) { | |
return [array[i], b]; | |
}); | |
} | |
$(document).ready(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var temps = {}; | |
// Define historic climate data | |
temps = { | |
'Bangor' : | |
{ | |
thiswinter_low: -20, thiswinter_lowdate: 'Jan. 4', | |
record_low: -32, record_lowdate: 'Feb. 2, 1948', record_lowsince: 1925 |
NewerOlder