Skip to content

Instantly share code, notes, and snippets.

@syntagmatic
syntagmatic / README.md
Last active December 22, 2015 04:49 — forked from mbostock/.block
Force-directed Splitting
@syntagmatic
syntagmatic / README.md
Last active December 22, 2015 04:39 — forked from mbostock/.block
Force-Directed Edge Severing

Edges are severed over time

@syntagmatic
syntagmatic / index.html
Last active December 14, 2015 06:59 — forked from anonymous/index.html
Polar Hover
<!DOCTYPE html>
<title>Polar Hover Effect</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
path {
fill: none;
stroke: black;
stroke-width: 2px;
}
.axis text {
@syntagmatic
syntagmatic / README.md
Last active December 13, 2015 19:28 — forked from mbostock/.block
Force-Directed SVG Icons

Replaces the circles in the force-directed graph with some SVG icons.

@syntagmatic
syntagmatic / README.md
Last active December 11, 2015 20:28 — forked from mbostock/.block
Colored Waterman
@syntagmatic
syntagmatic / README.md
Last active December 11, 2015 20:09 — forked from jasondavies/README.md
Colored Atlantis Projection
@syntagmatic
syntagmatic / README.md
Created December 10, 2012 06:43 — forked from mbostock/.block
Null Values - Parallel Coordinates

Null values indicated by space character.

@syntagmatic
syntagmatic / README.md
Last active October 12, 2015 21:58 — forked from syntagmatic/README.md
d3 src tree transitions

A comparison of the src directory for three versions of d3. Also see d3 src tree.

@syntagmatic
syntagmatic / README.md
Created November 15, 2012 01:43 — forked from mbostock/.block
d3 src tree

A visualization of files in the src directory of the d3 repository, based on Reingold-Tilford Tree.

Data Collection

Use git to clone a repository, then du to create a tsv with the directory contents.

git clone git://github.com/mbostock/d3.git
(echo -n 'size\tfile\n'; du -a d3) > d3.tsv

Burrow - recursive nesting

@syntagmatic
syntagmatic / README.md
Last active March 10, 2017 09:17 — forked from syntagmatic/README.md
Producer Price Indexes

Uses constraint relaxation to calculate new label positions, then transitions when no more adjustments are needed.

Also see the average prices.