Socket
Socket
Sign inDemoInstall

d3-plugins-sankey-fixed

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    d3-plugins-sankey-fixed

An npm compatible fork of D3's Sankey plugin


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
9.94 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 18 Aug 2016

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