A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bolstycjw/chartjs-adapter-dayjs-4 below:

GitHub - bolstycjw/chartjs-adapter-dayjs-4

This 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

npm install dayjs chartjs-adapter-dayjs-4 --save
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

Yarn

chartjs-adapter-dayjs-4 is available under the MIT license.

Moment Adapter source && README template

Ben McCann

Evert Timberg

stockiNail


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4