if something==0:
@app.callback(
Output('desc','children'), [Input('map','hoverData')])
def descr(hover):
description="some description",hover
return description
elif somethingelse!=0:
@app.callback(
[Output("bargraph", "figure"),Output('desc','children')],
[Input('map','hoverData'),Input('parameter','value'),Input('type','value')])
def combinedhover(hover,parameter,type):
description="somethingelse description",hover
return bargraph(parameter,type,var,hover),description
else:
@app.callback(
[Output("linechart", "figure"),Output('desc','children'),Output('bargraph','figure')],
[Input('map','hoverData'),Input('parameter','value'),Input('type','value')])
def combinedhover(hover,parameter,type):
description="else description",hover
return bargraph(parameter,type,var,hover),description,linechart(parameter,type,var,hover)