## Overview
npm install chartjs-adapter-dayjs-4This adapter allows the use of day.js with Chart.js time scale.
Requires Chart.js 4.0.1 or later and dayjs 1.9.7 or later.
NOTE: This adapter was designed for Chart.js v4 (which requires a separate date adapter for time scales to work properly), using this adapter in any version prior to 4 will override the default date-adapter
``bash`
npm install dayjs chartjs-adapter-dayjs-4 --save
`javascript`
import Chart from 'chart.js';
import 'chartjs-adapter-dayjs-4/dist/chartjs-adapter-dayjs-4.esm';
Read the Chart.js documention v4 for possible date/time related options. For example, the time scale time.* options v4 can be overridden using the Day.js formats.
You first need to install node dependencies (requires Node.js):
_NPM_
`bash`
> npm install
_Yarn_
`bash`
> yarn add
chartjs-adapter-dayjs-4` is available under the MIT license.
---
Moment Adapter source && README template
---