Gathering detailed insights and metrics for chartjs-adapter-date-fns2
Gathering detailed insights and metrics for chartjs-adapter-date-fns2
Gathering detailed insights and metrics for chartjs-adapter-date-fns2
Gathering detailed insights and metrics for chartjs-adapter-date-fns2
npm install chartjs-adapter-date-fns2
Typescript
Module System
Node Version
NPM Version
JavaScript (84.54%)
Shell (15.46%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Apr 18, 2019
Latest Version
0.0.3
Package Id
chartjs-adapter-date-fns2@0.0.3
Unpacked Size
27.05 kB
Size
4.50 kB
File Count
10
NPM Version
6.7.0
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This adapter allows the use of date-fns with Chart.js.
Requires Chart.js 2.8.0 or later and date-fns 2.0.0-alpha.27 or later.
Note: once loaded, this adapter overrides the default date-adapter provided in Chart.js (as a side-effect).
1npm install date-fns@next chartjs-adapter-date-fns2 --save
1import Chart from 'chart.js'; 2import 'chartjs-adapter-date-fns';
date-fns requires a date-fns locale object to be tagged on to each format()
call, which requires the locale to be explicitly set via the adapters.date
option: Chart.js documentation on adapters.date
For example:
1// import date-fns locale: 2import {de} from 'date-fns/locale'; 3 4// scale options: 5{ 6 adapters: { 7 date: { 8 locale: de 9 } 10 } 11}
Further, read the Chart.js documentation for other possible date/time related options. For example, the time scale time.*
options can be overridden using the date-fns tokens.
You first need to install node dependencies (requires Node.js):
1> npm install
The following commands will then be available from the repository root:
1> gulp build // build dist files 2> gulp build --watch // build and watch for changes 3> gulp lint // perform code linting
chartjs-adapter-date-fns
is available under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
Score
Last Scanned on 2025-07-07
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