Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricklupton/svg-sankey
Create SVG Sankey diagrams from the command line
https://github.com/ricklupton/svg-sankey
Last synced: 15 days ago
JSON representation
Create SVG Sankey diagrams from the command line
- Host: GitHub
- URL: https://github.com/ricklupton/svg-sankey
- Owner: ricklupton
- License: mit
- Created: 2016-07-18T15:20:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T13:53:26.000Z (over 5 years ago)
- Last Synced: 2024-08-01T12:31:27.490Z (3 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-starred - ricklupton/svg-sankey - Create SVG Sankey diagrams from the command line (others)
README
# svg-sankey
Create SVG Sankey diagrams from the command line. Uses [d3-sankey-diagram](https://github.com/ricklupton/d3-sankey-diagram).
## Installation
svg-sankey requires [`node` and `npm`](https://nodejs.org).
```shell
npm install -g svg-sankey
```## Usage
```shell
svg-sankey --size 800,600 --margins 10,150 sankey_data.json > sankey.svg
```The input data format is JSON with exactly the same content as used by [d3-sankey-diagram](https://github.com/ricklupton/d3-sankey-diagram). See the [documentation](https://github.com/ricklupton/d3-sankey-diagram/wiki#diagram) and [examples](https://ricklupton.github.io/d3-sankey-diagram/).