flex charts sliders for non-empower
This commit is contained in:
@@ -1040,6 +1040,23 @@ def interactive_cum_flex_chart2(theworkouts,promember=0,
|
|||||||
datadf.dropna(axis=1,how='all',inplace=True)
|
datadf.dropna(axis=1,how='all',inplace=True)
|
||||||
datadf.dropna(axis=0,how='any',inplace=True)
|
datadf.dropna(axis=0,how='any',inplace=True)
|
||||||
|
|
||||||
|
# test if we have drive energy
|
||||||
|
nowork = 1
|
||||||
|
try:
|
||||||
|
test = rowdata['driveenergy'].mean()
|
||||||
|
nowork = 0
|
||||||
|
except KeyError:
|
||||||
|
rowdata['driveenergy'] = 500.
|
||||||
|
|
||||||
|
# test if we have power
|
||||||
|
nopower = 1
|
||||||
|
try:
|
||||||
|
test = rowdata['power'].mean()
|
||||||
|
nopower = 0
|
||||||
|
except KeyError:
|
||||||
|
rowdata['power'] = 50.
|
||||||
|
|
||||||
|
|
||||||
yparamname1 = axlabels[yparam1]
|
yparamname1 = axlabels[yparam1]
|
||||||
if yparam2 != 'None':
|
if yparam2 != 'None':
|
||||||
yparamname2 = axlabels[yparam2]
|
yparamname2 = axlabels[yparam2]
|
||||||
@@ -1643,7 +1660,6 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
|
|
||||||
hover.mode = 'mouse'
|
hover.mode = 'mouse'
|
||||||
|
|
||||||
print rowdata.info()
|
|
||||||
|
|
||||||
callback = CustomJS(args = dict(source=source,source2=source2,
|
callback = CustomJS(args = dict(source=source,source2=source2,
|
||||||
x1means=x1means,
|
x1means=x1means,
|
||||||
|
|||||||
Reference in New Issue
Block a user