Skip to content

Instantly share code, notes, and snippets.

@jashcny
jashcny / IQ_scores.csv
Created April 4, 2016 22:39
Week11: Dataset
State average_or_above_average_intellectual_ability intellectual_disability Borderline_range
Arizona 0.47 0.28 0.25
Arkansas 0.28 0.22 0.5
Colorado 0.51 0.24 0.25
Georgia 0.41 0.35 0.24
Maryland 0.39 0.35 0.26
New Jersey 0.45 0.28 0.27
North Carolina 0.42 0.34 0.24
South Carolina 0.3 0.46 0.24
Utah 0.58 0.2 0.22
@jashcny
jashcny / autism_rate.csv
Created April 4, 2016 22:00
Week11: Map
State Rate Percents
Alabama 0.5 0.005
Alaska 0.5 0.005
Arizona 0.6 0.006
Arkansas 0.5 0.005
California 0.8 0.008
Colorado 0.4 0.004
Connecticut 0.9 0.009
Delaware 0.5 0.005
District of Columbia 0.6 0.006
@jashcny
jashcny / autism_by_race.csv
Last active October 14, 2016 15:54
Week10: Small Multiples
State White Black Hispanic API Total
Alabama 5 4 1.4 4.1 14.5
Arizona 20.7 16.1 8.9 19 64.7
Arkansas 13.5 7.1 10.1 0 30.7
Colorado 14.8 10.5 6.7 2.6 34.6
Florida 4.6 3 8.2 2.2 18
Georgia 11.8 11.9 7.1 15.9 46.7
Maryland 12.9 11.7 5.9 8.2 38.7
Missouri 14.6 9.3 9 9.8 42.7
New Jersey 21 20.6 20 3.1 64.7
@jashcny
jashcny / co2_emissions.csv
Created March 21, 2016 15:27
Week 9: JS homework
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 54 columns, instead of 27. in line 2.
countryName,countryCode,indicatorName,indicatorCode,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010
Afghanistan,AFG,CO2 emissions (kt),EN.ATM.CO2E.KT,491.378,689.396,707.731,839.743,1008.425,1092.766,1283.45,1224.778,942.419,1672.152,1895.839,1532.806,1639.149,1917.841,2126.86,1987.514,2390.884,2159.863,2240.537,1760.16,1983.847,2101.191,2522.896,2830.924,3509.319,3142.619,3124.284,2867.594,2775.919,2676.91,2493.56,1426.463,1375.125,1320.12,1268.782,1199.109,1114.768,1056.096,832.409,781.071,645.392,359.366,583.053,733.4,1015.759,1338.455,1991.181,3927.357,6523.593,8236.082
Albania,ALB,CO2 emissions (kt),EN.ATM.CO2E.KT,2280.874,2464.224,2082.856,2016.85,2174.531,2552.232,2680.577,3072.946,3245.295,3744.007,4352.729,5643.513,5291.481,4345.395,4594.751,4950.45,5720.52,6494.257,7587.023,5170.47,7341.334,7308.331,7
@jashcny
jashcny / index.html
Last active October 14, 2016 15:55
Week9: Stacked Transition.
<!DOCTYPE html>
<!-- code loosely inspired by this block https://gist.github.com/mstanaland/6100713 -->
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Dosis);
@import url(https://fonts.googleapis.com/css?family=Raleway:400);
@import url(https://fonts.googleapis.com/css?family=Raleway:400italic|Poiret+One|Ubuntu|Oxygen);
@import url(https://fonts.googleapis.com/css?family=Raleway:400italic|Poiret+One|Ubuntu);
body {
@jashcny
jashcny / guncrime.csv
Last active October 14, 2016 15:55
Week 8: My Update Plot.
Region State GunDeaths Ownership DeathRate
West Alaska 144 61.7 19.8
South Alabama 860 48.9 17.6
West Arizona 941 32.3 14.1
South Arkansas 501 58 16.8
West California 3026 20.1 7.7
West Colorado 619 34.3 11.5
Northeast Connecticut 161 16.6 4.4
South Delaware 100 5.3 10.3
South Florida 2442 32.5 11.9
@jashcny
jashcny / deaths_04yearsold_2013percent.csv
Last active October 14, 2016 15:55
Week 8: Finished Bar Homework.
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 11 columns, instead of 8. in line 7.
Country,Meningitis_encephalitis,Respiratory_infections,Sepsis,Pertussis,Malaria,Measles,Congenital_anomalies,HIV_AIDS,Diarrhoeal_diseases,Asphyxia_trauma
India,0.042488278,0.233534888,0.145938913,0.007182025,0.009314662,0.046933792,0.123114044,0.00663867,0.184781579,0.200073149
Democratic Republic of the Congo,0.040686134,0.221728479,0.075842245,0.01386753,0.212434283,0.06908283,0.048008834,0.02005919,0.150790387,0.147500089
Indonesia,0.025829262,0.27277861,0.106128312,0.01262,0.030445137,0.076689828,0.185003315,0.017677822,0.092133369,0.180694346
Pakistan,0.042190621,0.28618202,0.163435643,0.021985945,0.001921226,0.020857808,0.075568204,0.000843982,0.175454966,0.211559586
Nigeria,0.043200357,0.207813651,0.071262349,0.016492104,0.287175958,0.007996224,0.044873945,0.042612526,0.133019132,0.145553754
Ethiopia,0.034238059,0.262054587,0.115549659,0.028521607,0.043578469,0.034427597,0.081432904,0.034783927,0.140515542,0.22489765
Afghanistan,0.052876527,0.315089385,0.112120879,0.01908775,9.43381E-05,0.061885819,0.0
@jashcny
jashcny / index.html
Last active October 14, 2016 15:56
Week 7: Transition Plot.
<!DOCTYPE html>
<!-- A modified example from Scott Murray's Knight d3 course. -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scatter Transition</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
@jashcny
jashcny / index.html
Last active October 14, 2016 15:56
Week 7: Dots on Lines
<!DOCTYPE html>
<!-- Modification of an example by Scott Murray from Knight D3 course -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Line Chart with Multiple Lines</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Raleway:400);
@import url(https://fonts.googleapis.com/css?family=Raleway:400italic|Poiret+One|Ubuntu|Oxygen);
@jashcny
jashcny / index.html
Created February 22, 2016 17:25
Week 6: Line Plot.
<!DOCTYPE html>
<!-- Modification of an example by Scott Murray from Knight D3 course -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Adolescent Fertility Rate</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Raleway:400);
@import url(https://fonts.googleapis.com/css?family=Raleway:400italic|Poiret+One|Ubuntu|Oxygen);
@import url(https://fonts.googleapis.com/css?family=Raleway:400italic|Poiret+One|Ubuntu);