
I have a plot with two data sources. Each data source is plotted using figure.multi_line.
The plot needs to be updated on the fly based on user choices in widgets that allow changing the subset plotted or the preferred color scheme to highlight entries with various properties. The legend also needs to update based on the new color scheme. I use the legend_field option to accomplish this.
In response to the widget callbacks, I take my “raw data”, filter it and rerun pandas.groupby to create new data, and update the plot by doing data_source.data = new_view_of_raw_data
The plot and legend update correctly. However, I am using click_policy = “hide” and the clicking is not working as expected.
If you click on any of the legend items for data source “X”, all of the legend items for data source “X” disappear, not just the ones for the row of the legend you clicked on.
I really wanted just the one item to be hidden.
Is this a bug or expected behavior?

