Open bstadlbauer opened 5 years ago
Is this an issue or is there any other way to create an interactive bokeh legend?
It is an issue and thanks for filing it (I forgot the last time I ran into this). HoloViews mostly relies on the figure glyph methods to generate legends and it seems the graph method does not auto-generate a legend. The easiest thing to do will be to add the legend manually in GraphPlot.
Thank you! @philippjfr Is there any place where I can help? If I know where to implement it (e.g. an example of another element adding a legend) I am happy to make a PR
I don't think there's anything in HoloViews you could copy, I think you'd have to look into what bokeh does internally to create a legend and then copy that approach for Graphs, or possibly a better approach would be to add support for it directly at the bokeh level.
When creating a hv.Points plot the following would create a legend:
However, the same seems not to be true for hv.Graph elements:
Is this an issue or is there any other way to create an interactive bokeh legend?