Skip to content

Instantly share code, notes, and snippets.

@cornfact
cornfact / USDA Layers and Eggs.csv
Created August 24, 2015 13:40
The number of U.S. egg laying chickens and eggs affected by avian flu by month
Month 2014 layers 2015 layers 2014 eggs 2015 eggs
Dec 360.7 365.7 8.5 8.7
Jan 359.6 363.7 8.4 8.5
Feb 359.0 362.3 7.6 7.6
Mar 360.0 362.5 8.4 8.5
Apr 360.8 358.4 8.2 8.2
May 359.7 341.6 8.4 8.0
Jun 360.8 328.7 8.2 7.4
Jul 360.8 328.7 8.5 7.7
Aug 361.7 0.0 8.5 0.0
@cornfact
cornfact / index.html
Last active September 8, 2015 17:01
USDA Layers & Eggs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
</style>
</head>
@cornfact
cornfact / eggprices.csv
Created September 20, 2015 03:39
Price of eggs
eggDate eggPrice
14-Aug 1.979
14-Sep 1.97
14-Oct 1.951
14-Nov 2.032
14-Dec 2.21
15-Jan 2.113
15-Feb 2.088
15-Mar 2.133
15-Apr 2.065
@cornfact
cornfact / index.html
Created September 21, 2015 00:33
Egg layer population
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
@cornfact
cornfact / index.html
Created September 27, 2015 03:54
U.S. Layers 2014, 2015
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Line Chart with Two Lines</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<style type="text/css">
body {
background-color: white;
@cornfact
cornfact / cornYield.csv
Created November 1, 2015 02:56
Corn Production 1934-2014
date bushels
1934 1.1
1944 1.8
1954 2.7
1964 3.5
1974 4.7
1984 7.7
1994 10.1
2004 11.8
2005 11.1
@cornfact
cornfact / cropsVertical.csv
Created November 10, 2015 02:17
Stacked crop bars
year corn soy wheat sorghum
1929 99.13 2.43 67.18 3.52
1930 103.92 3.07 67.56 3.48
1931 109.36 3.84 66.46 4.44
1932 113.02 3.7 66.28 4.4
1933 109.83 3.54 69.01 4.35
1934 100.56 5.76 64.06 2.4
1935 99.97 6.97 69.61 4.6
1936 101.96 6.13 73.97 2.79
1937 97.17 6.33 80.81 4.92
@cornfact
cornfact / cropsVertical.csv
Created November 11, 2015 17:00
Crops 1929-2015, rough draft
1929 99.13 2.43 67.18 3.52
1930 103.92 3.07 67.56 3.48
1931 109.36 3.84 66.46 4.44
1932 113.02 3.7 66.28 4.4
1933 109.83 3.54 69.01 4.35
1934 100.56 5.76 64.06 2.4
1935 99.97 6.97 69.61 4.6
1936 101.96 6.13 73.97 2.79
1937 97.17 6.33 80.81 4.92
@cornfact
cornfact / index.html
Created November 11, 2015 23:17
Illinois counties
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Illinois by county</title>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
margin: 0;
@cornfact
cornfact / cornYield.csv
Created November 22, 2015 03:30
REVISED Corn Yield
1934 1.1
1944 1.8
1954 2.7
1964 3.5
1974 4.7
1984 7.7
1994 10.1
2004 11.8
2005 11.1