Private
Public Access
1
0

time axis bugfix compare

This commit is contained in:
Sander Roosendaal
2017-02-19 17:56:24 +01:00
parent 8b34ce7933
commit 0ddcd77947
2 changed files with 10 additions and 9 deletions

View File

@@ -1591,6 +1591,7 @@ def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line',
'workoutid']
datadf = dataprep.getsmallrowdata_db(columns,ids=ids)
tseconds = datadf.ix[:,'time']
yparamname = axlabels[yparam]
@@ -1604,13 +1605,17 @@ def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line',
if xparam=='distance':
xaxmax = datadf['distance'].max()
xaxmin = datadf['distance'].min()
else:
if xparam != 'distance' and xparam != 'time' and xparam != 'cumdist':
xaxmax = yaxmaxima[xparam]
xaxmin = yaxminima[xparam]
elif xparam == 'time':
xaxmax = tseconds.max()
xaxmin = tseconds.min()
else:
xaxmax = datadf['distance'].max()
xaxmin = datadf['distance'].min()
x_axis_type = 'linear'
y_axis_type = 'linear'

View File

@@ -6,10 +6,6 @@
{% block content %}
<script>
setTimeout("location.reload(true);",60000);
</script>
<div class="grid_12">