Hover data wrong when adding color dimension to scatter plot

Hi,

I believe your error is the same as the one on this thread:

My recommendation is use “hovertext” instead of “customdata” in hoverData:

country_name = hoverData['points'][0]['hovertext']
2 Likes