chartjs-adapter-spacetime
v1.0.1
Published
Spacetime adapter for Chart.js
Downloads
3,576
Maintainers
Readme
chartjs-adapter-spacetime
Spacetime support for Chart.js TimeScale plugin.
$ npm install spacetime chartjs-adapter-spacetime
$ yarn add spacetime chartjs-adapter-spacetime
$ pnpm add spacetime chartjs-adapter-spacetime
import { Chart as ChartJS, TimeScale } from 'chart.js'
import 'chartjs-adapter-spacetime'
ChartJS.register(TimeScale)
When providing your own formats via Chart.JS options, use Spacetime's unixFmt options. Localization is not currently supported.
Some portions of this project are based on chartjs-adapter-luxon.