From 75090c809c44892bd27306dc9785113a7dc8be14 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 24 Jun 2024 14:51:15 +0200 Subject: [PATCH] fix dashboard charts --- dashboard/components/dashboard/CountCard.vue | 17 +++++--- dashboard/components/dashboard/TopCards.vue | 17 +++++--- .../[project_id]/timeline/events.post.ts | 23 ++++++++-- .../timeline/sessions_duration.post.ts | 43 ++++++++++++++++--- dashboard/server/services/TimelineService.ts | 17 ++++++-- 5 files changed, 90 insertions(+), 27 deletions(-) diff --git a/dashboard/components/dashboard/CountCard.vue b/dashboard/components/dashboard/CountCard.vue index 1221f7c..ddefeb1 100644 --- a/dashboard/components/dashboard/CountCard.vue +++ b/dashboard/components/dashboard/CountCard.vue @@ -28,18 +28,21 @@ const props = defineProps<{
{{ text }}
-
- -
- {{ trend.toFixed(0) }} % +
+
+ +
+ {{ trend.toFixed(0) }} % +
+
Daily variation
- +
diff --git a/dashboard/components/dashboard/TopCards.vue b/dashboard/components/dashboard/TopCards.vue index 6f80194..ec52abb 100644 --- a/dashboard/components/dashboard/TopCards.vue +++ b/dashboard/components/dashboard/TopCards.vue @@ -1,6 +1,6 @@