first version analyses collection
This commit is contained in:
@@ -4080,7 +4080,8 @@ def interactive_streamchart(id=0, promember=0):
|
||||
|
||||
def instroke_interactive_chart(df,metric, workout, spm_min, spm_max,
|
||||
activeminutesmin, activeminutesmax,
|
||||
individual_curves):
|
||||
individual_curves,
|
||||
name='',notes=''):
|
||||
|
||||
|
||||
df_pos = (df+abs(df))/2.
|
||||
@@ -4184,6 +4185,24 @@ def instroke_interactive_chart(df,metric, workout, spm_min, spm_max,
|
||||
plot.add_layout(label)
|
||||
plot.add_layout(label2)
|
||||
|
||||
if name:
|
||||
namelabel = Label(x=50, y=480, x_units='screen', y_units='screen',
|
||||
text=name,
|
||||
background_fill_alpha=0.7,
|
||||
background_fill_color='white',
|
||||
text_color='black',
|
||||
)
|
||||
plot.add_layout(namelabel)
|
||||
|
||||
if notes:
|
||||
noteslabel = Label(x=50, y=50, x_units='screen', y_units='screen',
|
||||
text=notes,
|
||||
background_fill_alpha=0.7,
|
||||
background_fill_color='white',
|
||||
text_color='black',
|
||||
)
|
||||
plot.add_layout(noteslabel)
|
||||
|
||||
if individual_curves:
|
||||
for index,row in df.iterrows():
|
||||
plot.line(xvals,row,color='lightgray',line_width=1)
|
||||
|
||||
Reference in New Issue
Block a user