Skip to content

Instantly share code, notes, and snippets.

@ashleyignatius
ashleyignatius / d3.sankey.js
Last active December 18, 2015 15:46 — forked from emeeks/d3.sankey.js
Minnesota's Western Lake Superior Drainage
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;