Black Lives Matter. Please consider donating to Black Girls Code today.

Showing hovertext for multiple charts

Hi, I am plotting multiple charts one below another. All the charts share same xaxis. Can I show hover text for all the charts when hovered over any one chart. Currently it is showing hovertext of corresponding chart but can I show hovertext for all charts with same xaxis values.

Codepen Link: https://codepen.io/suribabu_95/pen/KyLYYm?editors=0010

Thnak You,

I’d recommend first taking a look at https://plot.ly/javascript/hover-events/#coupled-hover-events more specifically at the use of Plotly.Fx.hover. For your use case, you’ll have to juggle between multiple div ids (not just one 'myDiv') but the rest just follow closely.

Thank You, that’s pretty much what I needed. I am able to do that with multiple divs(https://codepen.io/suribabu_95/pen/wpBBEx?editors=1011). Thanks again
:slight_smile:

1 Like