Skip to content

Instantly share code, notes, and snippets.

View johnpoole's full-sized avatar

John Poole johnpoole

View GitHub Profile
@johnpoole
johnpoole / README.md
Last active December 10, 2015 02:28
Chord Diagram for Car2Go

needs to be tied to live data and date to have any value.

[[7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,9,10,11,12,14,16,18,20,21,17,12,13,15,18,20,22,24,26,27,28,30,31,32,33,34,35,36,37,38,40,41,43,45,48,50,54,57,61,65,69,73,76,79,82,84,86,87,88,89,90,91,92,93,93,94,95,95,96,96,97,97,97,98,98,98,99,99,99,100,100,100,100,101,101,101,101,101,101,102,102,102,102,102,102,102,103,103,103,103,103,103,103,103,103,103,103,103,103,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105],
[7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,9,9,10,12,13,15,18,20,21,17,12,13,15,18,20,22,24,25,27,28,29,30,31,32,33,34,36,37,38,39,41,42,44,46,49,52,56,59,63,67,71,75,78,81,83,85,86,88,89,90,91,92,92,93,94,94,95,95,96,96,97,97,98,98,98,99,99,99,99,100,100,100,100,101,101,101,101,101,102,102,102,102,102,102,102,102,103,103,103,103
@johnpoole
johnpoole / index.html
Last active December 10, 2015 04:08 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Chord Diagram</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.22.1"></script>
<style type="text/css">
body {
font: 10px sans-serif;
@johnpoole
johnpoole / README.md
Last active December 10, 2015 13:18 — forked from mbostock/.block

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value.

@johnpoole
johnpoole / README.md
Last active December 10, 2015 20:28
Car2Go Probability
  • Use the slider to change time of week.
  • Opacity of isopleths is still buggered up.
<html>
<head>
<title>Simple Line Graph using SVG and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke: steelblue;
stroke-width: 1;
fill: none;
@johnpoole
johnpoole / index.html
Last active September 8, 2015 22:40 — forked from d3noob/.block
Solver Table update bug
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@johnpoole
johnpoole / .block
Last active January 12, 2017 01:36 — forked from d3indepth/.block
Radial area generator
license: gpl-3.0
height: 210
border: no
@johnpoole
johnpoole / .block
Last active July 19, 2018 01:25 — forked from mbostock/.block
Stacked Radial Area
license: gpl-3.0
@johnpoole
johnpoole / .block
Created September 7, 2018 13:06 — forked from ctufts/.block
Normal Distribution Probability Density Block
license: mit
height: 600
border: no