From 2683d04b89ae730648f442760fc8354d7a4c446f Mon Sep 17 00:00:00 2001 From: tobinio Date: Tue, 18 Jun 2024 19:14:09 +0200 Subject: [PATCH] round charts --- components/Charts.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/Charts.vue b/components/Charts.vue index 1819719..7baee74 100644 --- a/components/Charts.vue +++ b/components/Charts.vue @@ -25,7 +25,12 @@ let downloadData = computed(() => { const chartData = computed(() => { return { labels: downloadData.value.labels, - datasets: downloadData.value.data + datasets: downloadData.value.data.map((value) => { + return { + ...value, + borderRadius: 3 + } + }) } }) @@ -56,7 +61,8 @@ const chartOptions = ref({ plugins: { legend: { labels: { - color: "#8a8a8c" + color: "#8a8a8c", + useBorderRadius: true } } }, -- 2.51.2