Style tooltip text

The text color in the label that appears when hovering over data points are not contrasting enough when some colors for my plot.
How do I style those labels?

Edit - I want to change font family and color of the text in the “tooltip”

I am using plotly in React. So would appreciate exact react syntax also.

Hey @bal

you can use hoverlabel: { ... } in the layout

1 Like