summaryrefslogtreecommitdiff
path: root/app/static/js/chart.js
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-05-09 00:38:36 -0500
committerstilbruch <stilbruch@protonmail.com>2022-05-09 00:38:36 -0500
commit635e1b13a45bdb240e07d525b55c3f22fd1be0cb (patch)
tree3a7a7ca47ea7eab76f712ecbc96714063baea5a4 /app/static/js/chart.js
parentac62c02ae1e9c051f64e4608e4060dc7a86b2923 (diff)
downloadStrengthy-635e1b13a45bdb240e07d525b55c3f22fd1be0cb.tar.xz
Strengthy-635e1b13a45bdb240e07d525b55c3f22fd1be0cb.zip
Improve charts
Diffstat (limited to 'app/static/js/chart.js')
-rw-r--r--app/static/js/chart.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/static/js/chart.js b/app/static/js/chart.js
index 779d8d3..956b80e 100644
--- a/app/static/js/chart.js
+++ b/app/static/js/chart.js
@@ -18,14 +18,24 @@ async function exercise_chart(elem_id, exercise_id, exercise_name) {
label: exercise_name,
data: [],
fill: false,
+ borderColor: 'rgb(75, 192, 192)',
tension: 0.1
}]
},
- option: {
+ options: {
scales: {
y: {
beginAtZero: true
}
+ },
+ plugins: {
+ legend: {
+ labels: {
+ font: {
+ size: 18
+ }
+ }
+ }
}
}
});