From e6ea368e15579a90fbaa389227ff1a4777a4bd30 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 10 Jan 2021 20:25:03 +0100 Subject: [PATCH] fix issue --- rowers/interactiveplots.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 17f99870..62e9fa1d 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -537,6 +537,15 @@ def interactive_boxchart(datadf,fieldname,extratitle='', if datadf.empty: return '','It looks like there are no data matching your filter' + columns = datadf.columns + + if not fieldname in columns: + return '','It looks like there are no data matching your filter' + + if not 'date' in columns: + return '','Not enough data' + + tooltips = [ ('Value', '@'+fieldname), ]