Annotation related to Trace - With Legend

Is it possible to add an anotation for a specific trace, keeping the legend ?
I am asking this because when I click on my specific legend, the annotation stays.

Thanks

See https://plot.ly/javascript/reference/#layout-annotations-xclick