Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
chartjs-plugin-scroll-bar
Advanced tools
This plugin for Chart.js that make scrollable charts in descriptors. Requires Chart.js v3.9.1 or higher.
npm install chartjs-plugin-scroll-bar
import { Chart } from 'chartjs';
import ChartjsPluginScrollBar from 'chartjs-plugin-scroll-bar';
Chart.register(ChartjsPluginScrollBar);
Name | Type | Default | Description |
---|---|---|---|
enable | boolean | undefined | |
scrollType | 'Horizontal' | 'Vertical' | undefined | depend on chart option indexAxis so x -> horizontal y-> vertical. |
specify plugin options with scrollBar: {enable: true, scrollType: 'Horizontal'}
.
you must use indexAxis and min max of scales for working scrollbar.
scroll size should be the difference between min and max of descriptor scale + 1.
new Chart(document.getElementById("my-chart"), {
type: "bar",
data: {
labels: ["Foo", "Bar", "flare"],
datasets: [
{ label: "bad", data: [5, 25], backgroundColor: "rgba(244, 143, 177, 0.6)" },
{ label: "better", data: [15, 10], backgroundColor: "rgba(255, 235, 59, 0.6)" },
{ label: "good", data: [10, 8], backgroundColor: "rgba(100, 181, 246, 0.6)" },
],
},
options: {
indexAxis: "x",
scales: {
x: {
min: 0,
max: 1,
}
}
plugins: {
scrollBar: {enable: true, scrollType: 'Horizontal'},
},
},
});
Pull requests and issues are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b feature_name
git commit -am 'Add some feature'
git push origin feature_name
npm install
npm version (major|minor|patch) && npm run build:publish
FAQs
scrollbar data in chart js
The npm package chartjs-plugin-scroll-bar receives a total of 40 weekly downloads. As such, chartjs-plugin-scroll-bar popularity was classified as not popular.
We found that chartjs-plugin-scroll-bar 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.