I have an app using Bokeh server and Flask server. Yet, my question relates to the basic Legend functionality.
On the one hand, I wish to use CoulmnDataSource to plot my data- easy, fast etc. Easy also to handle selection and plot data updates. Assume one of the columns in the CDS is holding the label (category) of the row.
Yet, when it comes to supporting a legend, the drawing functions (such as .circle) allow me either to add a fixed legend_label value, or else to use the legend_group. The latter, the legend_group feature is cool but it would not then support a Hide/Show/Mute per category- i.e. the whole legend (one group) get to hide/show at once- while the desired functionality is to have the Hide/Show support on a category-base level.
I know that I can move the data to pandas DataFrame and then draw each subset of the data separately (using its own legend_label) but then I’d loose the whole other benefits of the CDS.
Does anyone know if what I looking for is achiveable somehow? If not, I’d recon this could be really a very useful add on to the CDS support on Bokeh (to allow to slice it for the drawing and to automatically create the legend entries, similar in a way to the support for the color feature).
Many thanks in adance

