Bokeh can display on-hover tooltips on the charts, choosing from a list of values. But what if I need to make variable the same for all values?
The example below (from the documentation) allows to display value from the list, but if you do desc=foo,, instead of desc=['A', 'b'] tips transforms to "???"
source = ColumnDataSource(
data=dict(
x=[1, 2, 3, 4, 5],
y=[2, 5, 8, 2, 7],
desc=['A', 'b', 'C', 'd', 'E'],
)
)
hover = HoverTool(
tooltips=[
("index", "$index"),
("(x,y)", "($x, $y)"),
("desc", "@desc"),
]
)