☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Hover with Arrow

Community Support
grzegorz.malinowski
grzegorz.malinowski

What is the correct method assigning hover tooltips to arrows?
The list of variables is:
print(data['variables'])
[‘X100m’, ‘Long.jump’, ‘Shot.put’, ‘High.jump’, ‘X400m’, ‘X110m.hurdle’, ‘Discus’, ‘Pole.vault’, ‘Javeline’, ‘X1500m’]

arrow = Arrow(end=VeeHead(size=8),
             x_start=0, y_start=0, x_end='x_data', y_end='y_data', source=source)

vect = p_circ.add_layout(arrow)

hover_circle = HoverTool(
    tooltips=[('variable', '@variables')],
    mode='mouse')
hover_circle.renderers=[vect]
p_circ.add_tools(hover_circle)


print(data['variables'])

show(p_circ)

bokeh_plot(7)

⌁   Link to post
p-himik
p-himik

You can either plot the arrows completely manually or just plot some transparent glyphs on top of the annotations. The easiest is probably to plot invisible lines over the arrows’ stems and invisible circles of the right radius over the arrows’ heads.

⌁   Link to post

End of archived discussion · Replies are disabled