Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-11-22 15:06:25 +01:00
parent cd55e5ff08
commit c2359214ba

View File

@@ -93,6 +93,7 @@ from rowers.utils import lbstoN
from rowers.datautils import p0
import rowers.datautils as datautils
from pandas.core.groupby.groupby import DataError
def errorbar(fig, x, y, source=ColumnDataSource(),
xerr=False, yerr=False, color='black',
@@ -343,8 +344,11 @@ def interactive_boxchart(datadf,fieldname,extratitle='',
hv.extension('bokeh')
boxwhiskers = hv.BoxWhisker(datadf,'date',fieldname)
boxwhiskers.opts(tools=TOOLS,outlier_color='white')
try:
boxwhiskers = hv.BoxWhisker(datadf,'date',fieldname)
boxwhiskers.opts(tools=TOOLS,outlier_color='white')
except DataError:
return "","Invalid Data"
plot = hv.render(boxwhiskers)