import {
    Chart as ChartJS,
    Title,
    Tooltip,
    Legend,
    ArcElement,
    BarElement,
    LineElement,
    PointElement,
    CategoryScale,
    LinearScale,
    Filler,
} from 'chart.js'

export default defineNuxtPlugin(() => {
    ChartJS.register(
        Title,
        Tooltip,
        Legend,
        ArcElement,
        BarElement,
        LineElement,
        PointElement,
        CategoryScale,
        LinearScale,
        Filler,
    )
})
