diff options
| author | stilbruch <stilbruch@protonail.com> | 2022-05-02 18:55:43 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonail.com> | 2022-05-02 18:55:43 -0500 |
| commit | 960f3fabf56d7d7f11ea6295fd76849d71724f27 (patch) | |
| tree | 016cdc3873da875633e1aa21e2c2587413bf623a /app/static/js/chart.js | |
| parent | 8a8463c20da456f1ed93ba6a57460dd7a19fcefc (diff) | |
| download | Strengthy-960f3fabf56d7d7f11ea6295fd76849d71724f27.tar.xz Strengthy-960f3fabf56d7d7f11ea6295fd76849d71724f27.zip | |
More work on progress pages
Diffstat (limited to 'app/static/js/chart.js')
| -rw-r--r-- | app/static/js/chart.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/static/js/chart.js b/app/static/js/chart.js new file mode 100644 index 0000000..d72d415 --- /dev/null +++ b/app/static/js/chart.js @@ -0,0 +1,21 @@ + +function fillChart(id) { + const ctx = document.getElementById(id) + 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 + } + } + } + }); +} |
