Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chartjs-adapter-dayjs-4

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartjs-adapter-dayjs-4

## Overview

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38K
increased by4.57%
Maintainers
1
Weekly downloads
 
Created
Source

chartjs-adapter-dayjs-4

Overview

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

Installation

npm

npm install dayjs chartjs-adapter-dayjs-4 --save
import Chart from 'chart.js';
import 'chartjs-adapter-dayjs-4/dist/chartjs-adapter-dayjs-4.esm';

Configuration

v4 Chart.js documention

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.

Development

You first need to install node dependencies (requires Node.js):

NPM

> npm install

Yarn

> yarn add

License

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

Credits


Moment Adapter source && README template

Ben McCann

Evert Timberg

stockiNail


FAQs

Package last updated on 19 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc