Gathering detailed insights and metrics for d3-path-arrows
Gathering detailed insights and metrics for d3-path-arrows
npm install d3-path-arrows
Typescript
Module System
Node Version
NPM Version
72.6
Supply Chain
75.6
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
85,084
Last Day
124
Last Week
676
Last Month
3,236
Last Year
31,648
8 Stars
9 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.4.0
Package Id
d3-path-arrows@0.4.0
Size
4.03 kB
NPM Version
5.4.2
Node Version
6.11.1
Cumulative downloads
Total Downloads
Last day
11.7%
124
Compared to previous day
Last week
31%
676
Compared to previous week
Last month
79.9%
3,236
Compared to previous month
Last year
23.5%
31,648
Compared to previous year
2
4
A small library designed to work with d3-sankey-circular to append arrows to sankey links, like in this example.
The function creates a path for each link in the data, and uses dash-array to create individual arrows. I use dash-array works well where there are curves in a path.
This library can be used with other chart types, as long as the path function can be specified to the pathArrows instance.
Create an instance of pathArrows, with function that will draw the path. Then call the instance of pathArrows on a selection that has the path data appended to it, for example:
1let arrows = pathArrows() 2 .arrowLength(10) 3 .gapLength(150) 4 .arrowHeadSize(4) 5 .path(function(link){ return link.path }) 6 7svg.append("g").data(sankeyLinks) 8 .enter() 9 .append("g") 10 .attr("class", "g-arrow") 11 .call(arrows)
The function accepts four parameters:
arrowLength: length of the arrow, in pixels.
gapLength: the gap between each arrow, in pixels.
arrowHeadSize: the width of the arrow head.
path: the function that will draw the path. If you are using this with d3-sankey-circular, use function(link){ return link.path }
to access the path string.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-20
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More