![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
d3-sankey
Advanced tools
Readme
D3 4.0 implementation of the Sankey plugin
If you use NPM, npm install d3-sankey
. Otherwise, download the latest release.
# sankey()
Constructs a new sankey generator with the default settings.
# sankey.nodeWidth([width])
If width is specified, sets the node width to the specified function or number and returns this sankey generator. If width is not specified, returns the current node width accessor, which defaults to:
function nodeWidth() {
return 24;
}
# sankey.nodePadding([padding])
If padding is specified, sets the node padding to the specified function or number and returns this sankey generator. If padding is not specified, returns the current node padding accessor, which defaults to:
function nodePadding() {
return 8;
}
Here padding refers to the vertical space between nodes that occupy the same horizontal space.
# sankey.nodes([nodes])
If nodes is specified, sets the list of nodes to the specified function or array and returns this sankey generator. If nodes is not specified, returns the current accessor to the list of nodes, which defaults to:
function nodes() {
return [];
}
# sankey.links([links])
If links is specified, sets the list of links to the specified function or array and returns this sankey generator. If links is not specified, returns the current accessor to the list of links, which defaults to:
function links() {
return [];
}
# sankey.layout([iterations])
Returns the current accessor to the SVG layout object. Here iterations is the number of times the converging function computeNodeDepths is run.
# sankey.relayout()
Similar to layout but only recalculates the depth of links. Primarily used when a node is moved vertically.
FAQs
Visualize flow between nodes in a directed acyclic network.
The npm package d3-sankey receives a total of 693,142 weekly downloads. As such, d3-sankey popularity was classified as popular.
We found that d3-sankey demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.