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

Updating the hover text

Hi Im working on a drop down to enable showing more attributes on the onhover text for each point. Can I update the hover for each data point without making a new plot? work with all trace attributes, including hoverinfo and hovertext


you can do this, but with hovertext and hover info. Technically it’s another plot but it’s not too much work.

for i in range(3):
trace= go.Scatter(
x = [1,2,3,4,5,6,7,8,9,10],
y = [2,3,4,5,6,7,8,9,10,11],
 marker = dict( size = 10,
                        color = 'rgb(49,130,189)')