Open skipjack opened 1 year ago
We'll need two types of data to bring this to life...
Countries to focus on:
Sources we're seeing for US Population data...
https://data.census.gov/table?q=Population+Total&g=040XX00US36&y=2011
https://wisevoter.com/state-rankings/states-by-population/#florida
And regarding country subdivisions more broadly...
Sources that can be used for UK(Great Britain) population data...
To start, since it looks like we'll need to do this on a per-country basis, we can use the enrichCountry
methods in the [country_code]/index.js
modules. So for the US that would be src/us/index.js
. We'll break that up into multiple functions after you have it working and submit the PR.
To store the data, for now something like this should work...
country.attributes.statistics[year].populationBySubdivision = {
'US-NY': 2392302,
// ...
}
@JeydenP here's that package we were discussing...
Looks like that iso3166.subdivision("US", "Indiana")
call would be the easiest based on our conversation.
So this would be a new visualization with "Demographics" and only on the country-specific pages. It would set us up for a third-level of "Explore" depth (right now we have "Worldwide" => "[Country]").