Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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
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 / 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