$ 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.