2025-08-14 15:49:46 -06:00

35 lines
491 B
Vue

<script setup>
import { Bar } from 'vue-chartjs'
import {
Chart as ChartJS,
Title,
Tooltip,
Legend,
BarElement,
CategoryScale,
LinearScale,
PointElement,
LineElement
} from 'chart.js'
ChartJS.register(
Title,
Tooltip,
Legend,
BarElement,
CategoryScale,
LinearScale,
PointElement,
LineElement
)
const props = defineProps({
chartData: Object,
chartOptions: Object
})
</script>
<template>
<Bar :data="chartData" :options="chartOptions" />
</template>