Private
Public Access
1
0

activity chart without save

This commit is contained in:
Sander Roosendaal
2020-05-10 13:40:32 +02:00
parent 45ffeb76ee
commit 6d648c7c18
2 changed files with 4 additions and 3 deletions

View File

@@ -401,7 +401,7 @@ def interactive_planchart(data,startdate,enddate):
return script,div return script,div
def interactive_activitychart(workouts,startdate,enddate,stack='type'): def interactive_activitychart(workouts,startdate,enddate,stack='type',toolbar_location=None):
dates = [] dates = []
dates_sorting = [] dates_sorting = []
@@ -521,7 +521,7 @@ def interactive_activitychart(workouts,startdate,enddate,stack='type'):
p.plot_width=550 p.plot_width=550
p.plot_height=350 p.plot_height=350
p.toolbar_location = 'above' p.toolbar_location = toolbar_location
p.sizing_mode = 'scale_width' p.sizing_mode = 'scale_width'
url = "http://rowsandall.com/rowers/workout/@duration/" url = "http://rowsandall.com/rowers/workout/@duration/"
taptool = p.select(type=TapTool) taptool = p.select(type=TapTool)

View File

@@ -4906,6 +4906,7 @@ def history_view_data(request,userid=0):
totalsdict['nrworkouts'] = g_workouts.count() totalsdict['nrworkouts'] = g_workouts.count()
# activity chart
# interactive hr pie chart # interactive hr pie chart
if typeselect == 'All': if typeselect == 'All':