Skip to content

Instantly share code, notes, and snippets.

View aaronkyle's full-sized avatar

Aaron Kyle Dennis aaronkyle

View GitHub Profile
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/.block
Sankey diagram from formatted JSON
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/.block
Sankey diagram using names in JSON
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Last active May 20, 2018 01:05 — forked from d3noob/index.html
Sankey Diagram with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/index.html
Sankey Diagram with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/index.html
Sankey diagram with full motion nodes in v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/index.html
Sankey using named nodes in v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 01:05 — forked from d3noob/.block
Sankey diagram using a csv file with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@aaronkyle
aaronkyle / Makefile
Created May 29, 2018 11:16 — forked from johan/Makefile
Makefile of the steps in Mike Bostock's command-line cartography tutorial, parts 1-4 https://medium.com/@mbostock/command-line-cartography-part-1-897aa8f8ca2c
# request one at http://api.census.gov/data/key_signup.html and paste it below
CENSUS_API_KEY=YOUR_CODE_HERE
# a factor 1609.34 squared
SQ_M_TO_SQ_MI=2589975.2356
#prereqs:
# npm install -g shapefile # 0.6.1
# npm install -g d3-geo-projection # 1.2.1
# npm install -g ndjson-cli # 0.3.0
pharmName pmcPatientId journeyDays journeyStatusId
BRIOVARX 18668 17 8
BRIOVARX 5751 22 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 14372 8 8
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.