Hoverlabel is not working


I am trying to use hoverlabel to fix the text and background color of my hover info, but apparently, it is not working.

Can you please let me the reason?


You’re setting hoverlabel in the fifth argument your passing to Plotly.newPlot. That won’t do anything, Plotly.newPlot takes at most 4 arguments.

Set hoverlabel in the layout object where you’re already defining your graph’s axis options and you should get the desired result.

1 Like

Thank you so much. it worked.