Skip to content

Instantly share code, notes, and snippets.

04f6fa05099457bd211f172ebbaead17c72c9cb9c6c86ce6ab9ddd7ac78ba903511d96b34e7e01cec198ed831e32bb77e00c6e7f27ffbb9caac2973b2db0cf27b3;nortss
0x3A2bdc672a80e83d58f0760C86167C2275777bBA
@lukeisontheroad
lukeisontheroad / data.js
Last active April 21, 2017 10:49
Week 7 Makeover
var raw_data = [
{
"2013": 157,
"2014": 143,
"2015": 173,
"Name": "Gleitschirm / Delta",
"2013_l": "157 (2013)",
"2014_l": "143 (2014)",
"2015_l": "173 (2015)"
},
@lukeisontheroad
lukeisontheroad / data.js
Last active April 21, 2017 08:08
Week 6 Task 2
var raw_data = [
{
"country": "Afghanistan",
"year": 2015,
"avg_life_expectation": 60.5,
"female_life_expectation": 61.9,
"male_life_expectation": 59.3
},
{
"country": "Afghanistan",
@lukeisontheroad
lukeisontheroad / data.js
Created April 20, 2017 22:42
Week 6 Task 1
var raw_data = [
{
"country": "Afghanistan",
"year": 2015,
"avg_life_expectation": 60.5,
"female_life_expectation": 61.9,
"male_life_expectation": 59.3
},
{
"country": "Afghanistan",
@lukeisontheroad
lukeisontheroad / index.html
Created April 20, 2017 21:20
Life in weeks V1
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:100" rel="stylesheet">
<script src="https://d3js.org/d3.v4.js"></script>
<style type="text/css">
body {
background: linear-gradient(to top, #8e9eab, #eef2f3);
font-family: 'Roboto', sans-serif;
@lukeisontheroad
lukeisontheroad / index.html
Last active April 20, 2017 21:20
Life in weeks V2
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:100" rel="stylesheet">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style type="text/css">
body {
background: linear-gradient(to top, #8e9eab, #eef2f3);
font-family: 'Roboto', sans-serif;
splitrows col: column1 on: '\n' quote: '\"'
split col: column1 on: ',' limit: 9 quote: '\"'
replace col: * with: '' on: '\"' global: true
header
settype col: Index type: 'Integer'
set col: First_Name value: proper($col)
settype col: Date_Of_Birth type: 'Datetime','dd-mm-yy','dd*mm*yyyy'
settype col: Small_Shirt_Size type: 'Bool'
settype col: Small_Shirt_Size type: 'String'
settype col: Date_Of_Birth type: 'String'