Hello,
I am trying to plot multiple plots using multichoice option from bokeh. I want the plots to be visible when that option is chosen but i am facing issue whenever i try to choose a option the plots which are visible at beginning disappears and nothing is displayed.
I tried with the checkbox filter for the same data and code and it’s working properly but for multi choice option i am not getting the plots.
plot stores all the plots and col is for the column wise plot
This is the code for multichoice which i had written
'multi_choice = MultiChoice(title = 'Choose Option',value=[], options=OPTIONS)
callback = CustomJS(args=dict(plots=plot, col=col, multi_choice=multi_choice), code="""
var children = []
for (const i of multi_choice.value){
children.push(plots[i])
}
col.children = children
""")
multi_choice.js_on_change('value',callback)
’