Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! ✅Check out the new docs.

If multiple datapoints have same x value only the point with highest y shows tooltip

Hi there,

I am new to dash, I want to have an interactive scatter plot, where everytime a user clicks on a point the background in the scatter plot changes. This works fine except with points that share the same x value. When multiple points have the exact same x value only the point with the highest y value can be clicked.

Is there any way to change this feature?

It is enough to set hovermode=‘closest’ in the layout.