Python Bokeh – Making Interactive Legends
How to make Interactive legends?
The legend of a graph reflects the data displayed in the graph’s Y-axis. In Bokeh, the legends correspond to glyphs. There are two ways to make legends interactive:
A Glyph can be hidden from the legend by setting the legend click_policy property to “hide”.
Hiding the glyph makes it vanish completely, on the other hand, muting the glyph just de-emphasizes the glyph based on the parameters. A Glyph can be muted from the legend by setting the legend click_policy property to “mute”.