
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
chartist-plugin-scale-lines-and-dots
Advanced tools
Chartist plugin to scale lines and dots based on chart width
Chartist plugin to scale lines and dots based on chart width.
When there are small line charts and media queries aren't sufficient.
See demo
npm install chartist-plugin-scale-lines-and-dots --save
var Chartist = require('chartist');
var scaleLinesAndDots = require('chartist-plugin-scale-lines-and-dots');
var chart = new Chartist.Line(element, data, {
plugins: [
scaleLinesAndDots(options)
]
});
Everything is optional including the options object itself.
{
dot: {
// Minimum stroke-width a dot can have, default: 8
min: Number,
// Maximum stroke-width a dot can have, default: 10
max: Number,
// Unit used for dot's stroke-width, default: 'px'
unit: String
},
line: {
// Minimum stroke-width a line can have, default: 2
min: Number,
// Maximum stroke-width a line can have, default: 4
max: Number,
// Unit used for line's stroke-width, default: 'px'
unit: String
},
svgWidth: {
// Lower threshold for chart width. When chart width is <= this
// value, the chart's lines and dots will be at their min size.
min: Number,
// Upper threshold for chart width. When chart width is >= this
// value, the chart's lines and dots will be at their max size.
max: Number
}
}
MIT
[2.0.0] - 2016-05-22
FAQs
Chartist plugin to scale lines and dots based on chart width
We found that chartist-plugin-scale-lines-and-dots demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.