From e4d4ffb3e869b4ac38d6fbbf5f0a74843a529bd8 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 12 Nov 2023 10:45:39 +0100 Subject: [PATCH] Client - move to vue-chartjs + refacto --- fittrackee_client/package.json | 2 +- .../components/Common/StatsChart/Chart.vue | 376 +++++++++--------- .../components/Common/StatsChart/index.vue | 188 ++++----- .../WorkoutDetail/WorkoutChart/index.vue | 14 +- fittrackee_client/yarn.lock | 24 +- 5 files changed, 277 insertions(+), 327 deletions(-) diff --git a/fittrackee_client/package.json b/fittrackee_client/package.json index bc047a8e..5dd04e9d 100644 --- a/fittrackee_client/package.json +++ b/fittrackee_client/package.json @@ -35,7 +35,7 @@ "sanitize-html": "^2.11.0", "snarkdown": "^2.0.0", "vue": "^3.3.8", - "vue-chart-3": "^3.1.8", + "vue-chartjs": "^5.2.0", "vue-fullscreen": "^3.1.1", "vue-i18n": "^9.6.5", "vue-router": "^4.2.5", diff --git a/fittrackee_client/src/components/Common/StatsChart/Chart.vue b/fittrackee_client/src/components/Common/StatsChart/Chart.vue index 939a23c4..85f7519a 100644 --- a/fittrackee_client/src/components/Common/StatsChart/Chart.vue +++ b/fittrackee_client/src/components/Common/StatsChart/Chart.vue @@ -1,220 +1,200 @@ - diff --git a/fittrackee_client/src/components/Common/StatsChart/index.vue b/fittrackee_client/src/components/Common/StatsChart/index.vue index 92b56299..e382aceb 100644 --- a/fittrackee_client/src/components/Common/StatsChart/index.vue +++ b/fittrackee_client/src/components/Common/StatsChart/index.vue @@ -79,10 +79,10 @@ -