I wrote the following code to hide the glyphs created in the plot:
valueline_model_to_hide = curdoc().get_model_by_name(‘decreasing value line candle’)
valueline_model_to_hide.visible = False
But the problem is I’m not able to hide the legends of the corresponding glyphs with this. How shall I hide both the glyphs and the legends for that glyphs?