Private
Public Access
1
0

fixing reststrokes on compare plot

This commit is contained in:
Sander Roosendaal
2020-11-03 20:58:11 +01:00
parent 35830c0274
commit e2469e1eca
5 changed files with 18 additions and 8 deletions

View File

@@ -5370,20 +5370,25 @@ def interactive_bar_chart(id=0,promember=0):
return [script,div]
def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line',
promember=0,
promember=0,workstrokesonly=True,
labeldict=None,startenddict={}):
message = ''
errormessage = ''
columns = [xparam,yparam,
'ftime','distance','fpace',
'power','hr','spm',
'time','pace','workoutstate',
'workoutid']
datadf = dataprep.getsmallrowdata_db(columns,ids=ids,doclean=False,compute=False)
compute = False
doclean = False
if workstrokesonly:
compute = True
doclean = True
datadf = dataprep.getsmallrowdata_db(columns,ids=ids,doclean=doclean,compute=compute,
workstrokesonly=workstrokesonly)
datadf.dropna(axis=1,how='all',inplace=True)
datadf.dropna(axis=0,how='any',inplace=True)