From 3ee69d424f84b367cd3a8e269db417ded90a209d Mon Sep 17 00:00:00 2001
From: Vitaly Davidenko <9862028+vitalikda@users.noreply.github.com>
Date: Tue, 1 Dec 2020 17:45:53 +0300
Subject: [PATCH] add doughnut chart
---
components/DoughnutChart.vue | 17 +++++++++
pages/demo.vue | 70 +++++++++++++++++++++++++++++-------
utils.js | 46 ++++++++++++++++++++++--
3 files changed, 118 insertions(+), 15 deletions(-)
create mode 100644 components/DoughnutChart.vue
diff --git a/components/DoughnutChart.vue b/components/DoughnutChart.vue
new file mode 100644
index 0000000..d1ff354
--- /dev/null
+++ b/components/DoughnutChart.vue
@@ -0,0 +1,17 @@
+
diff --git a/pages/demo.vue b/pages/demo.vue
index a34584c..eaf78b4 100644
--- a/pages/demo.vue
+++ b/pages/demo.vue
@@ -11,37 +11,59 @@
-
+
- {{ workoutStats.totalWorkouts }}
+ {{ workoutStats.totalWorkouts | fInteger }}
Total workouts
-
+
- {{ workoutStats.hoursTrained }}
+ {{ workoutStats.hoursTrained | fInteger }}
Hours trained
-
+
- {{ workoutStats.yearsTrained }}
+ {{ workoutStats.yearsTrained | fInteger }}
Years trained
+
+
+
+ {{ workoutStats.workoutsPerWeek | fInteger }}
+
+ Workouts per week
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -91,8 +113,13 @@