Choropleth maps with time sliders using Plotly
<p>Plotly is great for generating beautiful visuals, and lately I’ve been experimenting with a very capable possibility within plotly: <strong>animated geographical data.</strong></p>
<p>There are great articles out there showing you how to plot geographical data over time, such as <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 <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> However, one thing is common among these articles: they make use of plotly’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 <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’s built-in maps, how do we do? <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>