Skip to content

Convert scatter tile to use getDenomInfo to solve population data bug#5718

Draft
lucyking140 wants to merge 7 commits intodatacommonsorg:masterfrom
lucyking140:lucysking/per-capita-fix
Draft

Convert scatter tile to use getDenomInfo to solve population data bug#5718
lucyking140 wants to merge 7 commits intodatacommonsorg:masterfrom
lucyking140:lucysking/per-capita-fix

Conversation

@lucyking140
Copy link
Copy Markdown
Contributor

@lucyking140 lucyking140 commented Nov 17, 2025

Fixes a bug in the per capita calculations for scatter tiles where if there was population data available from the same facet as the numerator for ANY place, it would be used for all places. This resulted in null population data more often because sometimes this information wasn't available for a place in particular, but there was population data available from other facets.

This was missed in the scatter tile when it was corrected in getDenomInfo, so I changed the logic here to reuse this helper.

@lucyking140 lucyking140 changed the title Lucysking/per capita fix Convert scatter tile to use getDenomInfo to solve population data bug Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant