summaryrefslogtreecommitdiff
path: root/app/templates/progress
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonail.com>2022-05-02 18:55:43 -0500
committerstilbruch <stilbruch@protonail.com>2022-05-02 18:55:43 -0500
commit960f3fabf56d7d7f11ea6295fd76849d71724f27 (patch)
tree016cdc3873da875633e1aa21e2c2587413bf623a /app/templates/progress
parent8a8463c20da456f1ed93ba6a57460dd7a19fcefc (diff)
downloadStrengthy-960f3fabf56d7d7f11ea6295fd76849d71724f27.tar.xz
Strengthy-960f3fabf56d7d7f11ea6295fd76849d71724f27.zip
More work on progress pages
Diffstat (limited to 'app/templates/progress')
-rw-r--r--app/templates/progress/exercise.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/templates/progress/exercise.html b/app/templates/progress/exercise.html
index 20f7c9f..51149fc 100644
--- a/app/templates/progress/exercise.html
+++ b/app/templates/progress/exercise.html
@@ -6,7 +6,31 @@
<div class="container">
<div class="columns is-centered">
<div class="column">
+ <div class="box">
+ <canvas id="exercise_chart"></canvas>
+ </div>
</div>
</div>
</div>
+
+<script>
+ new Chart(document.getElementById('exercise_chart'), {
+ type: 'line',
+ data: {
+ cubicInterpolationMode: 'monotone',
+ tension: 0.4,
+ pointStyle: 'circle',
+ pointRadius: 5,
+ pointHoverRadius: 10,
+ },
+ option: {
+ scales: {
+ y: {
+ beginAtZero: true
+ }
+ }
+ }
+ });
+</script>
+
{% endblock %}