Using Bokeh 2.2.3, given
from math import sin
from random import random
from bokeh.io import output_file, show
from bokeh.models import ColumnDataSource, HoverTool
from bokeh.plotting import figure
list_x = list(range(100))
list_y = [random() + sin(i / 20) for i in range(100)]
desc = [str(i) for i in list_y]
source = ColumnDataSource(data=dict(x=list_x, y=list_y, desc=desc))
hover = HoverTool(
tooltips=[("index", "$index"), ("(x,y)", "(@x, @y)"), ("desc", "@desc"),]
)
p = figure(plot_width=400, plot_height=400, tools=[hover], title="Belgian test")
p.step("x", "y", source=source, line_width=2)
output_file("test.html")
show(p)
the hover tooltips are not working. When using p.line
instead of p.step
in line 21 hover tooltips are shown though. Is this expected, documented, a bug, or am I missing something?