filtering working
This commit is contained in:
@@ -88,12 +88,19 @@ from rowers.dataprep import nicepaceformat,niceformat
|
||||
from rowers.dataprep import timedeltaconv
|
||||
|
||||
def interactive_boxchart(datadf,fieldname,extratitle=''):
|
||||
|
||||
if datadf.empty:
|
||||
return '','It looks like there are no data matching your filter'
|
||||
|
||||
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,resize'
|
||||
|
||||
plot = BoxPlot(datadf, values=fieldname, label='date',
|
||||
legend=False,
|
||||
title=axlabels[fieldname]+' '+extratitle,
|
||||
outliers=False,
|
||||
tools=TOOLS,
|
||||
toolbar_location="above",
|
||||
toolbar_sticky=False,
|
||||
x_mapper_type='datetime')
|
||||
|
||||
yrange1 = Range1d(start=yaxminima[fieldname],end=yaxmaxima[fieldname])
|
||||
@@ -133,12 +140,12 @@ def interactive_boxchart(datadf,fieldname,extratitle=''):
|
||||
|
||||
|
||||
plot.xaxis.major_label_orientation = pi/4
|
||||
|
||||
|
||||
script, div = components(plot)
|
||||
|
||||
|
||||
return script,div
|
||||
|
||||
|
||||
def interactive_forcecurve(theworkouts,workstrokesonly=False):
|
||||
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,tap,hover,resize,crosshair'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user