Today’s “data in motion” post is a quick population over time visualization. I’ll use U.S. census data over the last one-hundred-ish years. As is the theme in this series, I’ll convert the raw data into a video of the data over time using primarily F#.
The above video represents state-level population data from 1910 to 2020, in decade increments. The static data is brought together using a combination of tools. The primary one being F#, along with the libraries Deedle and Plotly.NET for data manipulation and chart creation (respectively). It is pulled together using ffmpeg in order to transform a series of images into a final video.
Source Data: U.S. Census Bureau. https://www.census.gov/data/tables/time-series/dec/popchange-data-text.html
For posterity sake, here are the package versions. Plotly.NET has made a lot of great progress lately.
1 | dotnet add package Deedle --version 2.5.0 |
And here is the code. As you can imagine, it is similar to the other posts in this series. The changes are mostly a result of different data formats and newer Plotly.NET versions.
1 | open System |