Private
Public Access
1
0

adding workout name to cp chart hover

This commit is contained in:
Sander Roosendaal
2020-10-18 12:12:21 +02:00
parent ee4ee05f33
commit 6ec0f669bd
3 changed files with 12 additions and 5 deletions

View File

@@ -2921,13 +2921,15 @@ def interactive_otwcpchart(powerdf,promember=0,rowername="",r=None,cpfit='data')
deltas = fitt.apply(lambda x: timedeltaconv(x))
ftime = niceformat(deltas)
workouts = powerdf['workout']
sourcecomplex = ColumnDataSource(
data = dict(
CP = fitpower,
CPmax = ratio*fitpower,
duration = fitt,
ftime = ftime
ftime = ftime,
workout = workouts,
)
)
@@ -2978,6 +2980,7 @@ def interactive_otwcpchart(powerdf,promember=0,rowername="",r=None,cpfit='data')
('Duration ','@ftime'),
('Power (W)','@CP{int}'),
('Power (W) upper','@CPmax{int}'),
('Workout','@workout'),
])
hover.mode = 'mouse'