adding workout name to cp chart hover
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user