Skip to content

Instantly share code, notes, and snippets.

@enjulee
enjulee / betterlifeindex.csv
Created August 27, 2015 09:34
Enju's exercise for Module 2
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,512,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,500,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,509,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,402,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
<!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>DPRK</p>
<!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>DPRK</p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Number of Male Students' Enrollment by Field of Study</title>
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
font-style: normal;
background-color: whitesmoke;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Number of Male Students' Enrollment by Field of Study</title>
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
font-style: normal;
background-color: whitesmoke;
subject male
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 0.1258
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 0.1258
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 0.1258
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
<!DOCTPE html>
<head>
<style type="text/css">
body{
background-color:steelblue;
color:black;
margin:5 px;
padding:30x;
}
p,
<!DOCTPE html>
<head>
<style type="text/css">
body{
background-color:steelblue;
color:black;
margin:5 px;
padding:30x;
}
p,