Skip to content

Instantly share code, notes, and snippets.

@andresrojas1
andresrojas1 / index.html
Created March 29, 2015 08:37
Percentage of people using the internet in the Americas 2004 - 2013
<!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>
</head>
<body>
<svg width="500" height="350">
<text x="10" y="50" fill="charcoal" font-size="42" font-weight="bold" font-family="Helvetica">Amazing graphic</text>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="../d3.v3.js"></script>
</head>
<body>
<p>Not much to see here; try looking in the console!</p>
@andresrojas1
andresrojas1 / index.html
Created March 29, 2015 05:56
People using the internet by country
<!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>
</head>
<body>
<p>Not much to see here; try looking in the console!</p>
@andresrojas1
andresrojas1 / index.html
Created March 29, 2015 05:47
People user the internet - test
<!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>
</head>
<body>
<p>Not much to see here; try looking in the console!</p>
@andresrojas1
andresrojas1 / individuals using the Internet.csv
Created March 22, 2015 08:10
Percentage of individuals using the Internet from 2003 to 2013
Country or Area Year Value
Afghanistan 2013 5.9
Afghanistan 2012 5.454545455
Afghanistan 2011 5
Afghanistan 2010 4
Afghanistan 2009 3.55
Afghanistan 2008 1.84
Afghanistan 2007 1.9
Afghanistan 2006 2.107123645
Afghanistan 2005 1.224148084
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 25 columns, instead of 13 in line 5.
Country,Dwellings without basic facilities,Housing expenditure,Rooms per person,Household net adjusted disposable income,Household net financial wealth,Employment rate,Job security,Long-term unemployment rate,Personal earnings,Quality of support network,Educational attainment,Student skills,Years in education,Air pollution,Water quality,Consultation on rule-making,Voter turnout,Life expectancy,Self-reported health,Life satisfaction,Assault rate,Homicide rate,Employees working very long hours,Time devoted to leisure and personal care
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,514,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,498,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,507,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,406,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522
Important information to share from Andres Rojas