Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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!