Skip to content

Instantly share code, notes, and snippets.

View emagee's full-sized avatar

Marcia Gray emagee

View GitHub Profile
@emagee
emagee / SeriesReport-combined-averageFirstLine-transposed.csv
Created December 22, 2016 22:41
Multiseries Line Chart: US Unemployment by Occupation and/or Industry
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 33 columns, instead of 23. in line 3.
year,US average,Management (professional),Management (business),Professional,Service,Sales and office,Sales and related,Office,Natural resources,Farming,Construction (occupation),Installation,Production plus transportation and material moving,Production,Transportation and material moving,Nonagriculture,Mining_etc (nonagricultural),Construction (industry),Manufacturing,Durable goods,Nondurable goods,Wholesale and retail,Transportation and utilities,Information,Financial activities,Professional and business services,Education and health,Leisure and hospitality,Other services,Agricultural,All Industries: wage and salary workers,All industries: self-employed_unincorporated_etc.
2000,4,1.8,1.6,1.9,5.2,3.8,4.1,3.6,5.3,10.2,6.2,2.4,5.1,4.8,5.6,4.1,4.4,6.2,3.5,3.2,4,4.3,3.4,3.2,2.4,4.8,2.5,6.6,3.9,9,2.1,2.1
2001,4.7,2.3,2.2,2.3,5.8,4.4,4.7,4.2,6.4,13.4,7.3,3.2,6.4,6.6,6.2,5,4.2,7.1,5.2,5.2,5.2,4.9,4.3,4.9,2.9,6.1,2.8,7.5,4,11.2,2.2,2.1
2002,5.8,3,3,3,6.6,5.6,5.9,5.4,7.8,12,9.1,4.6,7.6,7.8,7.4,6.2,6.3,9.2,6.7,6.9,6.2,
@emagee
emagee / chocolate_imports_1989-2014-2.csv
Created March 19, 2016 13:25
Chocolate imports (reposted)
Source 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
Canada 100 115 127 151 164 178 222 262 316 348 346 390 456 525 705 721 712 709 726 758 647 872 941 989 1046 1177
Mexico 16 23 12 10 17 15 25 26 27 23 35 34 37 54 73 89 102 131 144 215 355 454 533 515 499 478
Indonesia 4 12 16 17 18 20 47 62 97 62 57 44 47 50 60 62 68 64 83 139 100 122 166 157 160 251
Malaysia 22 46 51 55 30 38 43 42 69 66 57 43 47 38 90 110 112 108 121 256 242 308 278 148 134 185
Cote d'Ivoire 37 35 33 28 23 31 30 26 23 39 30 24 13 30 60 62 78 79 67 91 136 176 129 154 146 179
Germany 18 17 18 22 24 21 25 29 29 29 30 40 54 52 58 53 58 64 82 78 79 150 166 182 174 178
Netherlands 71 80 53 54 66 67 66 67 73 75 71 79 101 124 175 163 134 122 107 132 163 250 297 267 202 169
Belgium-Luxembourg 19 24 22 23 25 23 25 27 35 40 51 48 55 50 61 70 76 89 103 96 80 93 115 120 124 131
France 7 6 7 9 9 11 12 11 15 17 26 21 24 31 42 46 47 55 61 56 52 71 73 63 64 62
@emagee
emagee / index.html
Created November 20, 2015 22:06
Average Annual Wages by State
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Average annual wages per employee - by US state</title>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<link href='https://fonts.googleapis.com/css?family=Amaranth:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<style type="text/css">
@emagee
emagee / index.html
Created November 10, 2015 23:54
USA, in moody blue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>USA - AlbersUSA projection</title>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<link href='https://fonts.googleapis.com/css?family=Amaranth:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<style type="text/css">
@emagee
emagee / fatalitites_by_occupation-d2.csv
Created November 7, 2015 16:37
Fatal occupational injuries, 2003–2014
occupation code occupation 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
15-000 Computer and mathematical 8 7 6 16 4 7 9 14 5 8 12 16
23-000 Legal 15 3 17 11 11 16 13 9 14 8 16 7
31-000 Healthcare support 20 12 19 23 14 19 25 17 23 12 18 14
19-000 Life - physical - and social science 20 25 17 28 20 23 17 27 23 21 25 18
21-000 Community and social services 29 43 25 33 28 34 32 25 23 39 20 31
25-000 Education - training - and library 30 27 26 23 22 27 22 30 37 25 20 27
13-000 Business and financial operations 32 27 36 39 31 24 26 26 30 22 21 25
29-000 Healthcare practitioners and technical 49 72 42 56 66 61 56 67 55 48 60 53
39-000 Personal care and service 53 56 62 57 63 57 48 66 71 65 48 61
@emagee
emagee / index.html
Created October 31, 2015 15:48
Dabble & Dawdle, module 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marcia's Module 1 Bar Chart</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<link href='https://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
source target weight
white chocolate almonds 1
white chocolate apricots 1
white chocolate bananas 1
white chocolate basil 1
white chocolate berries 1
white chocolate caramel 1
white chocolate cashews 1
white chocolate coconut 1
white chocolate dates 1
@emagee
emagee / bowker-data-clean-reformatted-3.csv
Created August 2, 2015 16:31
Small multiples (line graphs), with tooltips
subject date count
Agriculture 2002 1418
Agriculture 2003 1535
Agriculture 2004 1501
Agriculture 2005 1483
Agriculture 2006 1426
Agriculture 2007 1259
Agriculture 2008 1556
Agriculture 2009 1363
Agriculture 2010 1833
Agriculture 2002 1418
Agriculture 2003 1535
Agriculture 2004 1501
Agriculture 2005 1483
Agriculture 2006 1426
Agriculture 2007 1259
Agriculture 2008 1556
Agriculture 2009 1363
Agriculture 2010 1833
@emagee
emagee / bowker-data-clean-reformatted-3.csv
Created August 1, 2015 13:18
Small multiples, eventually with tooltips?
Agriculture 2002 1418
Agriculture 2003 1535
Agriculture 2004 1501
Agriculture 2005 1483
Agriculture 2006 1426
Agriculture 2007 1259
Agriculture 2008 1556
Agriculture 2009 1363
Agriculture 2010 1833