Scatter Plot Onclick display text for that point


I am trying to display the text associated with the point clicked on alert box.

Here is a fiddle for my requirement:

Is it possible to access the text?

Here’s how:

In brief, you have to dig into the data field in the point data and grab the correct text item based of the pointNumber.

Thank you Etienne! That’s perfect!