Skip to content

Commit

Permalink
🐝 upgrade hardcoded variable ids for population and gdp per capita (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 authored Oct 28, 2024
2 parents e011027 + e482940 commit 26a71c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@ourworldindata/grapher/src/core/GrapherConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const ThereWasAProblemLoadingThisChart = `There was a problem loading thi
export const WorldEntityName = "World"

export const CONTINENTS_INDICATOR_ID = 123 // "Countries Continent"
export const POPULATION_INDICATOR_ID_USED_IN_ADMIN = 597929 // "Population (various sources, 2023.1)"
export const POPULATION_INDICATOR_ID_USED_IN_ENTITY_SELECTOR = 597930 // "Population (various sources, 2023.1)"
export const GDP_PER_CAPITA_INDICATOR_ID_USED_IN_ENTITY_SELECTOR = 735665 // "World Development Indicators - World Bank (2023.05.11)"
export const POPULATION_INDICATOR_ID_USED_IN_ADMIN = 953899 // "Population (various sources, 2024-07-15)"
export const POPULATION_INDICATOR_ID_USED_IN_ENTITY_SELECTOR = 953903 // "Population (historical) (various sources, 2024-07-15)"
export const GDP_PER_CAPITA_INDICATOR_ID_USED_IN_ENTITY_SELECTOR = 905490 // "World Development Indicators - World Bank (2024-05-20)"

export const isContinentsVariableId = (id: string | number): boolean =>
id.toString() === CONTINENTS_INDICATOR_ID.toString()
Expand Down

0 comments on commit 26a71c5

Please sign in to comment.