From 635e1b13a45bdb240e07d525b55c3f22fd1be0cb Mon Sep 17 00:00:00 2001 From: stilbruch Date: Mon, 9 May 2022 00:38:36 -0500 Subject: Improve charts --- app/static/js/chart.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app/static') 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 + } + } + } } } }); -- cgit v1.2.3