Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Hoverinfo is not getting displayed if we are adding one trace exactly with the same value on top of the other trace in Histogram

I have created the histogram chart with the barmode as ‘overlay’. Now I am adding another addtrace exaclty with the same value with hoverinfo: 'none. Now I am able to see the hoverinfo of the first trace as well. How can I display the hoverinfo of the first trace.

That’s the desired under layout.hovermode: 'closest'.

You can try using layout.hovermode: 'x' to see all values for a given x coordinate.

Thank you that worked for me