I write bokeh for around a month now. I would like to know if it is possible to add a Legend with two glyph with different colors.
So you have a very helpful example here:
If I wanted to add a Legend for the two boxes I would normally do:
# boxes box1 = p.vbar(latest_queries, 0.7, q2.score, q3.score, fill_color="#E08E79", line_color="black") box2 = p.vbar(latest_queries, 0.7, q1.score, q2.score, fill_color="#3B8686", line_color="black")
And then later on:
legend = Legend(items=[('Latest results', [box1,box2]), location="bottom_left")
However this will result in a Legend with one box with only the first color.
Is there a way to create a custom Legend with two glyph, but in the same line and with the same text?