0👍
We are using vue-chartjs
and chartjs-adapter-luxon
together without issues. Our Vue app has a module which imports ChartJS to register all the features we use, and it imports the luxon adapter.
I don’t use moment.js, but I assume it can be registered similarly.
import {
Chart as ChartJS,
Filler,
Title,
Tooltip,
// and more
} from 'chart.js'
import 'chartjs-adapter-luxon'
ChartJS.register(
Filler,
Title,
Tooltip,
... // and more
)
- Chartjs-Fade other lines when hovering legend in Chart.js
- Chartjs-Dynamic number of chart.js charts on the same page
Source:stackexchange.com