Skip to content

Instantly share code, notes, and snippets.

@smckissock
smckissock / ISO3166-1alpha-3.csv
Last active December 2, 2015 11:14
US Foreign Assistance
id name
ABW Aruba
AFG Afghanistan
AGO Angola
AIA Anguilla
ALA land Islands
ALB Albania
AND Andorra
ANT Netherlands Antilles
ARE United Arab Emirates
@smckissock
smckissock / index.html
Last active January 2, 2025 06:49
World Map
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mercator projection</title>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<style type="text/css">
body {
background-color: white;
@smckissock
smckissock / index.html
Last active November 10, 2015 11:00
USG Revenue as % of GDP 1934-2020
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stacked Bar Chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
font-family: Helvetica, Arial, sans-serif;
@smckissock
smckissock / index.html
Last active November 7, 2015 14:00
US Corporate Tax as a Percentage of GDP 1934-2020
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bar Chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
font-family: Helvetica, Arial, sans-serif;
@smckissock
smckissock / OutlaysByAgency1960_2020.csv
Last active November 7, 2015 16:24
Scatterplot with transitions
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 61 columns, instead of 19 in line 3.
Department or other unit,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,TQ,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,2011,2012,2013,2014,2015,2016,2017,2018,201,2020
Legislative Branch,196,192,199,212,234,252,269,289,353,395,499,553,638,739,788,226,990,1064,1099,1224,1214,1367,1437,1577,1607,1662,1810,1848,2216,2231,2245,2629,2394,2537,2609,2263,2348,2572,2592,2871,2959,3187,3396,3890,3984,4101,4294,4408,4704,5839,4582,4440,4316,4164,4899,4794,4969,5007,5065,5113
Judicial Branch,57,62,66,75,80,88,94,110,133,145,173,188,207,284,325,85,393,437,481,567,641,710,787,866,966,1071,1180,1342,1499,1646,1997,2308,2628,2677,2903,3059,3259,3459,3789,4057,4381,4828,5127,5389,5547,5823,6006,6347,6645,7181,7296,7227,7063,6893,7567,7724,7852,8012,8135,8225
Department of Agriculture,6437,7414,7569,6940,5633,5952,7430,8446,8412,8673,11021,10167,10302,15518,17682,5009,23287,
@smckissock
smckissock / OutlaysByAgency1960_2020.csv
Last active November 7, 2015 14:11
Horizontal bars with axis
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 61 columns, instead of 9 in line 3.
Department or other unit,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,TQ,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,2011,2012,2013,2014,2015 estimate,2016 estimate,2017 estimate,2018 estimate,2019 estimate,2020 estimate
Legislative Branch,196,192,199,212,234,252,269,289,353,395,499,553,638,739,788,226,990,1064,1099,1224,1214,1367,1437,1577,1607,1662,1810,1848,2216,2231,2245,2629,2394,2537,2609,2263,2348,2572,2592,2871,2959,3187,3396,3890,3984,4101,4294,4408,4704,5839,4582,4440,4316,4164,4899,4794,4969,5007,5065,5113
Judicial Branch,57,62,66,75,80,88,94,110,133,145,173,188,207,284,325,85,393,437,481,567,641,710,787,866,966,1071,1180,1342,1499,1646,1997,2308,2628,2677,2903,3059,3259,3459,3789,4057,4381,4828,5127,5389,5547,5823,6006,6347,6645,7181,7296,7227,7063,6893,7567,7724,7852,8012,8135,8225
Department of Agriculture,6437,7414,7569,6940,5633,5952,7430,8
@smckissock
smckissock / OutlaysByAgency1962_2020.csv
Last active November 7, 2015 14:08
Horizontal Bars
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 61 columns, instead of 9 in line 3.
Department or other unit,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,TQ,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,2011,2012,2013,2014,2015 estimate,2016 estimate,2017 estimate,2018 estimate,2019 estimate,2020 estimate
Legislative Branch,196,192,199,212,234,252,269,289,353,395,499,553,638,739,788,226,990,1064,1099,1224,1214,1367,1437,1577,1607,1662,1810,1848,2216,2231,2245,2629,2394,2537,2609,2263,2348,2572,2592,2871,2959,3187,3396,3890,3984,4101,4294,4408,4704,5839,4582,4440,4316,4164,4899,4794,4969,5007,5065,5113
Judicial Branch,57,62,66,75,80,88,94,110,133,145,173,188,207,284,325,85,393,437,481,567,641,710,787,866,966,1071,1180,1342,1499,1646,1997,2308,2628,2677,2903,3059,3259,3459,3789,4057,4381,4828,5127,5389,5547,5823,6006,6347,6645,7181,7296,7227,7063,6893,7567,7724,7852,8012,8135,8225
Department of Agriculture,6437,7414,7569,6940,5633,5952,7430,8
@smckissock
smckissock / OutlaysByAgency1962_2020.csv
Last active November 7, 2015 14:09
USG Outlays Test
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
Department or other unit,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,TQ,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,2011,2012,2013,2014,2015 estimate,2016 estimate,2017 estimate,2018 estimate,2019 estimate,2020 estimate
Legislative Branch,196,192,199,212,234,252,269,289,353,395,499,553,638,739,788,226,990,"1,064","1,099","1,224","1,214","1,367","1,437","1,577","1,607","1,662","1,810","1,848","2,216","2,231","2,245","2,629","2,394","2,537","2,609","2,263","2,348","2,572","2,592","2,871","2,959","3,187","3,396","3,890","3,984","4,101","4,294","4,408","4,704","5,839","4,582","4,440","4,316","4,164","4,899","4,794","4,969","5,007","5,065","5,113"
Judicial Branch,57,62,66,75,80,88,94,110,133,145,173,188,207,284,325,85,393,437,481,567,641,710,787,866,966,"1,071","1,180","1,342","1,499","1,646","1,997","2,308","2,628","2,677","2,903","3,059","3,259","3,459","3,7