Make the line graph update based on the country clicked on the plotly choropleth map

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

Recording 2023-07-10 092349

1 Like