@redsift/d3-rs-sankey
v0.4.0
Published
Generates sankey charts using D3v4.
Downloads
159
Readme
d3-rs-sankey
d3-rs-sankey
generate a sankey flow via the D3 reusable chart convention.
Example
View @redsift/d3-rs-√ on Codepen
Line chart
Multiple series
Usage
Browser
<script src="//static.redsift.io/reusable/d3-rs-sankey/latest/d3-rs-sankey.umd-es2015.min.js"></script>
<script>
var chart = d3_rs_tree.html();
d3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);
</script>
ES6
import { html as chart } from "@redsift/d3-rs-sankey";
let eml = chart();
...
Require
var chart = require("@redsift/d3-rs-sankey");
var eml = chart.html();
...
Test
To run the examples:
npm run serve