Choropleth maps with time sliders using Plotly

<p>Plotly is great for generating beautiful visuals, and lately I&rsquo;ve been experimenting with a very capable possibility within plotly:&nbsp;<strong>animated geographical data.</strong></p> <p>There are great articles out there showing you how to plot geographical data over time, such as&nbsp;<a href="https://towardsdatascience.com/how-to-create-an-animated-choropleth-map-with-less-than-15-lines-of-code-2ff04921c60b#189e" rel="noopener" target="_blank">this one, by Shinichi Okada</a>, or&nbsp;<a href="https://medium.com/@maeliza.seymour/animated-choropleth-map-with-plotly-covid-19-use-case-7a13244d0ee3" rel="noopener">this one, by Maeliza S.</a>&nbsp;However, one thing is common among these articles: they make use of plotly&rsquo;s built-in geographical data for plotting the geometries, which makes them limited to locations such as USA states and the world map, including others that can be&nbsp;<a href="https://plotly.com/python/reference/#choropleth-locationmode" rel="noopener ugc nofollow" target="_blank">found here.</a></p> <p>For our case, we have a dataset showing the behaviour of snow plowing across the neighbourhoods of the city of Toronto. Well, if the city of Toronto is not included on Plotly&rsquo;s built-in maps, how do we do?&nbsp;<strong>We use our own geometry!</strong></p> <p><a href="https://medium.com/@lucas_bromerchenkel/choropleth-maps-with-time-sliders-using-plotly-df6e19e5f90c"><strong>Website</strong></a></p>