diff options
| author | stilbruch <stilbruch@protonail.com> | 2022-05-04 19:09:29 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonail.com> | 2022-05-04 19:09:29 -0500 |
| commit | ac0463db9a00b8d5fcd570d18e86c9ba62851365 (patch) | |
| tree | 9c71cf6ad0c9c6a11b01779a76bc864f5741e575 /app/static/js | |
| parent | 6a92fe73a176164197706965c82ea98b08bbc2bd (diff) | |
| download | Strengthy-ac0463db9a00b8d5fcd570d18e86c9ba62851365.tar.xz Strengthy-ac0463db9a00b8d5fcd570d18e86c9ba62851365.zip | |
Progress on progress api endpoint
Diffstat (limited to 'app/static/js')
| -rw-r--r-- | app/static/js/chart.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/static/js/chart.js b/app/static/js/chart.js index d72d415..06edc4d 100644 --- a/app/static/js/chart.js +++ b/app/static/js/chart.js @@ -1,7 +1,6 @@ - -function fillChart(id) { - const ctx = document.getElementById(id) - new Chart(document.getElementById('exercise_chart'), { +function exercise_chart(elem_id, exercise_id) { + // Create initial chart + let chart = new Chart(document.getElementById(elem_id), { type: 'line', data: { cubicInterpolationMode: 'monotone', @@ -18,4 +17,6 @@ function fillChart(id) { } } }); + + // Load chart data for exercise } |
