How to make a choropleth map with a slider using Plotly?
问题 I'm recreating the example choropleth and trying to add a slider that, when dragged, would change from year to year. Another user asked a similar question but they didn't receive a reply. I did some more searching and found an example where the user generated random values for the additional years and created a slider but it's in JavaScript and I'm not sure how to translate it into Python. Here's the code in JavaScript: Plotly.d3.csv('https://raw.githubusercontent.com/plotly/datasets/master