@redsift/d3-rs-sankey

0.4.0 • Public • Published

d3-rs-sankey

Circle CI npm MIT

d3-rs-sankey generate a sankey flow via the D3 reusable chart convention.

Example

View @redsift/d3-rs-√ on Codepen

Line chart

Sample bars with a bottom orientation

Multiple series

Sample bars with a left orientation

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

/@redsift/d3-rs-sankey/

    Package Sidebar

    Install

    npm i @redsift/d3-rs-sankey

    Weekly Downloads

    145

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    1.78 MB

    Total Files

    19

    Last publish

    Collaborators

    • sega057
    • alkisredsift
    • kit-314
    • julian.picht
    • massimoparisi
    • sometimesitbetterstepasideandnotusejavascript
    • raul.lorenzo.redsift
    • asaf.lerner
    • luminous_cal
    • notmentat
    • pierredupuis
    • hortega_rs
    • anneshackelford
    • mcolladoredsift
    • redsift_operations
    • rahulpowar
    • randalpinto
    • njaremek
    • earada
    • nascimj
    • neilsaccardo
    • bmayolasredsift