Gathering detailed insights and metrics for chartjs-plugin-crosshair
Gathering detailed insights and metrics for chartjs-plugin-crosshair
Gathering detailed insights and metrics for chartjs-plugin-crosshair
Gathering detailed insights and metrics for chartjs-plugin-crosshair
npm install chartjs-plugin-crosshair
98.9
Supply Chain
92.8
Quality
77.8
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
152 Stars
78 Commits
86 Forks
6 Watching
11 Branches
4 Contributors
Updated on 11 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-9.3%
15,579
Compared to previous day
Last week
14.3%
81,942
Compared to previous week
Last month
63.3%
331,447
Compared to previous month
Last year
35.8%
2,763,369
Compared to previous year
1
Chart.js plugin to draw vertical crosshair, zoom, interpolate values and sync chart interactions.
Requires Chart.js 3.4.0 or later.
1new Chart(ctx, { 2 // ... data ... 3 options: { 4 // ... other options ... 5 plugins: { 6 tooltip: { 7 mode: 'interpolate', 8 intersect: false 9 }, 10 crosshair: { 11 line: { 12 color: '#F66', // crosshair line color 13 width: 1 // crosshair line width 14 }, 15 sync: { 16 enabled: true, // enable trace line syncing with other charts 17 group: 1, // chart group 18 suppressTooltips: false // suppress tooltips when showing a synced tracer 19 }, 20 zoom: { 21 enabled: true, // enable zooming 22 zoomboxBackgroundColor: 'rgba(66,133,244,0.2)', // background color of zoom box 23 zoomboxBorderColor: '#48F', // border color of zoom box 24 zoomButtonText: 'Reset Zoom', // reset zoom button text 25 zoomButtonClass: 'reset-zoom', // reset zoom button class 26 }, 27 callbacks: { 28 beforeZoom: () => function(start, end) { // called before zoom, return false to prevent zoom 29 return true; 30 }, 31 afterZoom: () => function(start, end) { // called after zoom 32 } 33 } 34 } 35 } 36 } 37});
You first need to install node dependencies (requires Node.js):
> npm install
The following commands will then be available from the repository root:
> gulp build // build dist files
> gulp build --watch // build and watch for changes
> gulp lint // perform code linting
> gulp docs // generate GitBook documentation (`dist/docs`)
> gulp samples // prepare samples for release (`dist/samples`)
> gulp package // create an archive with dist files and samples
> gulp netlify // prepare Netlify artifacts (`dist/www`)
chartjs-plugin-crosshair
is available under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/9 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
45 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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