diff --git a/README.md b/README.md index 545e767..018a4bf 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # d3-sankey -D3 4.0 implementation of the Sankey plugin +D3 4.0 implementation of the Sankey plugin to visualize the flow between nodes in a directed acyclic network. ## Installing -If you use NPM, `npm install d3-sankey`. Otherwise, download the [latest release](https://github.com/xaranke/d3-sankey/releases/latest). +If you use NPM, `npm install d3-sankey`. Otherwise, download the [latest release](https://github.com/d3/d3-sankey/releases/latest). ## Demo Here is Mike Bostock's famous example [recreated with d3-sankey](http://bl.ocks.org/xaranke/9ada4c74a87b57ae7308). diff --git a/package.json b/package.json index ba4a55e..d3544b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-sankey", - "version": "0.1.3", + "version": "0.2.0", "description": "D3 4.0 implementation of the Sankey plugin", "keywords": [ "d3", @@ -9,10 +9,10 @@ "license": "BSD-3-Clause", "main": "build/d3-sankey.js", "jsnext:main": "index", - "homepage": "https://github.com/xaranke/d3-sankey", + "homepage": "https://github.com/d3/d3-sankey", "repository": { "type": "git", - "url": "https://github.com/xaranke/d3-sankey.git" + "url": "https://github.com/d3/d3-sankey.git" }, "scripts": { "pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -g d3-arrays:d3_arrays,d3-interpolate:d3_interpolate -u d3-sankey -n d3_sankey -o build/d3-sankey.js -- build/bundle.js", diff --git a/src/sankey.js b/src/sankey.js index a31d3a9..9b2322d 100644 --- a/src/sankey.js +++ b/src/sankey.js @@ -10,7 +10,7 @@ import { number } from 'd3-interpolate'; -// Stolen from Mike Bostock's excellent work at http://bost.ocks.org/mike/sankey/sankey.js +// Stolen from https://github.com/d3/d3-plugins/tree/master/sankey export default function() { var sankey = {},