Can we display the names for the scatter plots like a static text on the graph on click of a button

Hello!

Have you checked out this page: https://plot.ly/javascript/text-and-annotations/?