Private
Public Access
1
0

ajax call for history chart

This commit is contained in:
Sander Roosendaal
2020-05-06 21:41:10 +02:00
parent 3e8753e557
commit cf47afe538
2 changed files with 47 additions and 6 deletions

View File

@@ -4747,8 +4747,11 @@ def history_view(request,userid=0):
# interactive hr pie chart
totalscript = ''
totaldiv = get_call()
if typeselect == 'All':
totalscript,totaldiv = interactive_hr_piechart(df,r,'All Workouts')
pass
#totalscript,totaldiv = interactive_hr_piechart(df,r,'All Workouts')
else:
a_workouts = g_workouts.filter(workouttype=typeselect)
ddf = getsmallrowdata_db(columns,ids=[w.id for w in a_workouts])
@@ -4758,7 +4761,7 @@ def history_view(request,userid=0):
pass
ddf = dataprep.clean_df_stats(ddf,workstrokesonly=True,
ignoreadvanced=True)
totalscript, totaldiv = interactive_hr_piechart(ddf,r,mytypes.workouttypes_ordered[typeselect])
#totalscript, totaldiv = interactive_hr_piechart(ddf,r,mytypes.workouttypes_ordered[typeselect])
# interactive power pie chart