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

Hi,

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

Here is a fiddle for my requirement:

https://jsfiddle.net/a6631vtv/

Is it possible to access the text?

Here’s how: https://jsfiddle.net/sg1kmm7g/1/

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!