Chartjs-Is it possible to setup vue-chartjs 3.5.1 with momentjs for formatting dates in chart.js

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 
)

Leave a comment