plotly - vline - how to make annotation appear only when hovering

597 Views Asked by At

I have a line chart using plotly on which I track events of interest by adding vline as markers representing the events. Annotation on the vline describes the events. When the lines are close enough, the annotations overlap with each other and become unreadable.

Heres an example:

enter image description here

Is there a way I can make these annotations show up only when hovering on the line? How do I achieve this?

0

There are 0 best solutions below