Socket
Socket
Sign inDemoInstall

@redsift/d3-rs-sankey

Package Overview
Dependencies
22
Maintainers
23
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @redsift/d3-rs-sankey

Generates sankey charts using D3v4.


Version published
Maintainers
23
Install size
7.27 MB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 15 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc