This commit is contained in:
Laurent
2025-03-22 09:53:23 +01:00
parent 546506cf59
commit ba31dd3d05

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import {onMounted} from "vue";
import {Chart} from "chart.js/auto";
import {Chart, type ChartItem} from "chart.js/auto";
import {Event} from "@/models/Event.ts";
@@ -18,8 +18,9 @@ onMounted(() => {
function draw() {
const ctx = document.getElementById('myChart');
if(!ctx) return;
new Chart(ctx, {
new Chart(ctx as ChartItem, {
type: 'doughnut',
data : {
labels: data.dates,