Socket
Book a DemoInstallSign in
Socket

d3-plugins-sankey-fixed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-plugins-sankey-fixed

An npm compatible fork of D3's Sankey plugin

1.3.0
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

d3-sankey

A fork of D3js's Sankey plugin

Demo: http://bost.ocks.org/mike/sankey/

var sankey = d3.sankey()
    .size([width, height])
    .nodeWidth(15)
    .nodePadding(10)
    .nodes(energy.nodes)
    .links(energy.links)
    .layout(32);
var path = sankey.link();

Additional Features

The d3.sankey() closure supports an additional options hash not found in the standard implementation.

It allows the following additional features.

  • customSort : (defaultSort) => (a:node, b:node) => :int

A custom sort function to determine node order. The option value should be a factory for a compare function. The existing compare function is given to the factory and your custom compare function should be returned.

Keywords

d3

FAQs

Package last updated on 18 Aug 2016

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.