chartjs-community-adapter-dayjs
Overview
This adapter allows the use of dayjs with Chart.js.
Requires Chart.js 2.8.0 or later and dayjs 1.11.0 or later.
Note: once loaded, this adapter overrides the default date-adapter provided in Chart.js (as a side-effect).
Installation
npm
npm install chartjs-community-adapter-dayjs --save
import { Chart } from 'chart.js';
import 'chartjs-community-adapter-dayjs';
Development
You first need to install node dependencies (requires Node.js):
> npm install
The following commands will then be available from the repository root:
> npm run build // build dist files
> npm run lint // perform code linting