https://github.com/redsift/d3-rs-sankey
https://github.com/redsift/d3-rs-sankey
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redsift/d3-rs-sankey
- Owner: redsift
- License: mit
- Created: 2018-06-22T00:45:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T14:57:41.000Z (about 2 years ago)
- Last Synced: 2025-10-27T23:25:05.277Z (8 months ago)
- Language: HTML
- Size: 1.4 MB
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d3-rs-sankey
[](https://circleci.com/gh/redsift/d3-rs-sankey)
[](https://www.npmjs.com/package/@redsift/d3-rs-sankey)
[](https://raw.githubusercontent.com/redsift/d3-rs-sankey/master/LICENSE)
`d3-rs-sankey` generate a sankey flow via the D3 reusable chart convention.
## Example
[View @redsift/d3-rs-√ on Codepen](http://codepen.io/collection/DgkEpa/)
### Line chart

### Multiple series

## Usage
### Browser
var chart = d3_rs_tree.html();
d3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);
### 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`