You can change from country_name = clickData["points"][0]["customdata"] to country_name = clickData["points"][0]["hovertext"] and it will work.

You can change from country_name = clickData["points"][0]["customdata"] to country_name = clickData["points"][0]["hovertext"] and it will work.
