☰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

How can I click on overlapping data points in a bokeh plot?

Community Support
CChris
CChris

Hello all,

I am plotting a scatter plot in bokeh and have to deal with many overlapping datapoints. When using the HoverTool it nicely shows a list of the points at that specific location. What doesn’t work is using the TapTool to be able click on all of those individual points. In fact I will only be able to click on the top-most point.

One possible idea was to try and click on the labels from the HoverTool by making them stick like this: https://codepen.io/drapja/pen/MJyxvv which is being discussed in: Feature Request: HoverTool tooltips stick to a point on click. · Issue #5724 · bokeh/bokeh · GitHub

I could then put links in those tool tips and make the user click on the one she wants.

Unfortunately, this sample implementation doesn’t work for me (the labels disappear on click): javascript - Bokeh - how to make HoverTool tooltips stick to points on click? - Stack Overflow

Thanks for any advice,

Chris

⌁   Link to post

End of archived discussion · Replies are disabled