Skip to content

Instantly share code, notes, and snippets.

@luluwuluying
luluwuluying / AlcoholConsumption.csv
Last active February 29, 2016 22:01
week7 Transition Plot.
Country INDICATOR SUBJECT MEASURE FREQUENCY Year Amount Flag Codes
Australia ALCOHOL TOT LT_CAP15 A 1995 9.8
Australia ALCOHOL TOT LT_CAP15 A 1996 10
Australia ALCOHOL TOT LT_CAP15 A 1997 10.2
Australia ALCOHOL TOT LT_CAP15 A 1998 10
Australia ALCOHOL TOT LT_CAP15 A 1999 10
Australia ALCOHOL TOT LT_CAP15 A 2000 10.2
Australia ALCOHOL TOT LT_CAP15 A 2001 10
Australia ALCOHOL TOT LT_CAP15 A 2002 10.4
Australia ALCOHOL TOT LT_CAP15 A 2003 10.3
@luluwuluying
luluwuluying / index.html
Created February 29, 2016 21:43
Dots on Lines
<!DOCTYPE html>
<!-- Modification of an example by Scott Murray from Knight D3 course -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Line Chart with Multiple Lines</title>
<style type="text/css">
body {
background-color: white;
@luluwuluying
luluwuluying / index.html
Created February 22, 2016 21:20
Week 6: Line Plot
<!DOCTYPE html>
<!-- Modification of an example by Scott Murray from Knight D3 course -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Line Chart with Multiple Lines</title>
<style type="text/css">
body {
background-color: white;
@luluwuluying
luluwuluying / diabetes.csv
Last active February 15, 2016 21:41
Wee5 homework3
Year Crude AgeAdjusted
1980 2.5 2.8
1981 2.5 2.8
1982 2.5 2.8
1983 2.4 2.7
1984 2.6 2.8
1985 2.6 2.9
1986 2.8 3.1
1987 2.8 3
1988 2.6 2.8
@luluwuluying
luluwuluying / education.csv
Last active February 15, 2016 21:42
Week5 homework2
educationdegree weeklyearning2011
High school,no diploma 451.00
High school graduate 638.00
College,no degree 719.00
Associate degree 768.00
Bachelor's degree 1053.00
Master's degree 1263.00
Professional degree 1665.00
Doctoral degree 1551.00
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 25 columns, instead of 1. in line 6.
country,dwellingsWithoutBasicFacilities,housingExpenditure,roomsPerPerson,householdNetAdjustedDisposableIncome,householdNetFinancialWealth,employmentRate,jobSecurity,longTermUnemploymentRate,personalEarnings,qualityOfSupportNetwork,educationalAttainment,studentSkills,yearsInEducation,airPollution,waterQuality,consultationOnRuleMaking,voterTurnout,lifeExpectancy,selfReportedHealth,lifeSatisfaction,assaultRate,homicideRate,employeesWorkingVeryLongHours,timeDevotedToLeisureAndPersonalCare
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,17,15,90,10.5,61,81,88,7.6,1.3,1.7,3.98,14.25
C
@luluwuluying
luluwuluying / Socialmedia.csv
Last active February 8, 2016 19:14
Week4: Sortable Heatmap table
Tool Monthlyviews Monthlyvisits
Archives.gov Blogs 79986 45744
Tumblr Blogs 18079 9585
Facebook 11508850 3474852
Youtube 191964 22860
Flickr 1765243 10798
iTunes U 2260 338
@luluwuluying
luluwuluying / index.html
Created February 8, 2016 19:13
Week 4: SVG fixes
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVG Shapes</title>
</head>
<body>
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
@luluwuluying
luluwuluying / education.csv
Created February 8, 2016 19:10
Week4: Starter Bars
educationdegree weeklyearning2011
High school,no diploma 451
High school graduate 638
College,no degree 719
Associate degree 768
Bachelor's degree 1053
Master's degree 1263
Professional degree 1665
Doctoral degree 1551
@luluwuluying
luluwuluying / Time-spent.csv
Created February 1, 2016 19:40
week3 d3 table
Activity AvgHourMen AvgHourWomen
Personal care activities 9.32 9.82
Sleeping 8.69 8.9
Eating and drinking 1.21 1.14
Household activities 1.38 2.14
Housework 0.27 0.82
Food preparation and cleanup 0.34 0.82
Lawn and garden care 0.25 0.12
Household management 0.1 0.13
Purchasing goods and services 0.6 0.87