fix issue
This commit is contained in:
@@ -537,6 +537,15 @@ def interactive_boxchart(datadf,fieldname,extratitle='',
|
|||||||
if datadf.empty:
|
if datadf.empty:
|
||||||
return '','It looks like there are no data matching your filter'
|
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 = [
|
tooltips = [
|
||||||
('Value', '@'+fieldname),
|
('Value', '@'+fieldname),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user