diff --git a/src/components/dashboard/DashboardCharts.vue b/src/components/dashboard/DashboardCharts.vue index 940523f..d552cb7 100644 --- a/src/components/dashboard/DashboardCharts.vue +++ b/src/components/dashboard/DashboardCharts.vue @@ -199,14 +199,15 @@ const weeklyChartOptions = computed(() => {
+ class="flex items-center text-sm gap-1 text-surface-500 dark:text-surface-400 w-10 text-right !w-full">
{{ category.percentage }} %
- ({{ - category.changeDiffPercentage > 0 ? '+' : category.changeDiffPercentage < 0 ? '-' : '' + - Math.round(category.changeDiffPercentage) }}) + ({{ + (category.changeDiffPercentage > 0 ? '+' : '') + Math.round(category.changeDiffPercentage) + }}%)