Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@redsift/d3-rs-lines
Advanced tools
d3-rs-lines
generate a range of line charts. Supports area fills, hovers and highlights.
View @redsift/d3-rs-lines on Codepen
<script src="//static.redsift.io/reusable/d3-rs-lines/latest/d3-rs-lines.umd-es2015.min.js"></script>
<script>
var chart = d3_rs_lines.html();
d3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);
</script>
import { chart } from "@redsift/d3-rs-lines";
let eml = chart.html();
...
var chart = require("@redsift/d3-rs-lines");
var eml = chart.html();
...
[1,2,3,4...]
Property | Description | Transition | Preview |
---|---|---|---|
classed | String SVG custom class | N | |
width , height , size , scale | Integer SVG container sizes | Y | |
style | String Custom CSS to inject into chart | N | |
minValue ,maxValue | Number Sets the minimum and maximum Value scale range. Note that for log scales, minValue must be > 0. | Y | |
tickCountIndex ,tickCountValue | Number, String, Interval Function Hints at the number of ticks to set in the corresponding axis. Supports strings for example (time intervals)[https://github.com/d3/d3-time#intervals] | ||
tickMinorIndex , tickMinorValue | Number, String, Interval Function Hints at the number of minor ticks to set in the corresponding axis. | ||
tickFormatIndex , tickFormatValue | String, Function Sets the formatting string or function for the ticks | ||
tickDisplayIndex , tickDisplayValue | Function Alternatively you can customise all tick presentation logic with this function | ||
curve | String, Function, https://github.com/d3/d3-shape#curves, excluding closed and open curves. If a function is supplied, it should implement https://github.com/d3/d3-shape#custom-curves | ||
symbol | (Array of) String, Function https://github.com/d3/d3-shape#symbolCircle or https://github.com/d3/d3-shape#custom-symbol-types | ||
legendOrientation | String top, left, bottom, right, voronoi | ||
voronoiAttraction | Number -1...0...1 When using the voronoi legendOrientation, how far the label is dragged to the data line. 0 implies no dragging, -1 pushes the labels away | ||
fill | String, Array, Function If function, in addition to usual data, index parameters, a 3rd string parameter indicates the context - one of area , stroke , symbol , legend | ||
fillAreaOpacity | Unit Number | ||
fillArea , fillStroke | Boolean, Array[Boolean] Sets if the lines should be filled or stroked. By default is set appropriately for line and stack presentation | ||
stackOffset , stackOrder | String, Array, Function https://github.com/d3/d3-shape#stack-orders https://github.com/d3/d3-shape#stack-offsets | ||
animation | String reveal , value , default | ||
trim | Integer Level to trim the array to | ||
tipHtml | String, Function parameters of the function are (d, i, s) where d is the data element, i is the index, s is the series of the data | ||
onClick | Function handler for a click event on the data series |
TODO: Explain string use and intervals like utcDecade
;
TODO: timeMultiFormat
TODO: Discuss timeMultiFormat
and tickCountIndex
with relation to UTC
FAQs
Generates line charts using D3v4.
The npm package @redsift/d3-rs-lines receives a total of 211 weekly downloads. As such, @redsift/d3-rs-lines popularity was classified as not popular.
We found that @redsift/d3-rs-lines demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.