Private
Public Access
1
0

stroke angle chart prototype

This commit is contained in:
Sander Roosendaal
2019-12-11 15:17:20 +01:00
parent 04ffc15f24
commit 00f7a5a3ef
3 changed files with 75 additions and 10 deletions

View File

@@ -258,7 +258,7 @@ rowingmetrics = (
'ax_min': 0,
'ax_max': 30,
'default': 0,
'sigfigs': 0,
'sigfigs': 1,
'mode':'water',
'type': 'pro',
'group': 'stroke'}),

View File

@@ -394,8 +394,14 @@ function copyText() {
<div id="athlete_hr"></div>
</li>
{% endif %}
{% if 'stroke' in metricsgroups %}
<li class="grid_2" style="height:500px">
<div style="width:100%;height:70%;" id="stroke_angles"></div>
</li>
{% endif %}
</ul>
</li>
<li class="grid_2">
{% if analysis and user.is_authenticated and user == analysis.workout.user.user %}
<p>
@@ -411,6 +417,7 @@ function copyText() {
$(document).ready( function() {
$(window).load(function() {
// initialize data fields
console.log('initializing first value of data');
{% for id, metric in metrics.items %}
{{ id }}_now = {{ id }}_values[0];
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
@@ -466,6 +473,10 @@ function copyText() {
hr_now = hr_values[0];
set_athlete();
{% endif %}
{% if 'stroke' in metricsgroups %}
anglesoptions.PieStartAngle = 90+catch_now;
set_stroke();
{% endif %}
// cookie reader
function createCookie(name,value,days) {