Skip to content

Commit

Permalink
✨ switch to the new owid regions data and tweak colors for regions
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Nov 18, 2024
1 parent 1fc853c commit b8c6364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/@ourworldindata/grapher/src/color/CustomSchemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,14 @@ CustomColorSchemes.push({

export const ContinentColors = {
Africa: OwidDistinctColors.Mauve,
Antarctica: OwidDistinctColors.Turquoise,
Antarctica: OwidDistinctColors.DarkCopper,
Asia: OwidDistinctColors.Teal,
Europe: OwidDistinctColors.Denim,
NorthAmerica: OwidDistinctColors.Peach,
["North America"]: OwidDistinctColors.Peach,
SouthAmerica: OwidDistinctColors.Maroon,
["South America"]: OwidDistinctColors.Maroon,
Oceania: OwidDistinctColors.DarkCopper,
Oceania: OwidDistinctColors.Turquoise,
World: OwidDistinctColors.DarkOliveGreen,
SubSaharanAfrica: OwidDistinctColors.DarkMauve,
MiddleEastNorthAfrica: OwidDistinctColors.Purple,
Expand All @@ -340,7 +340,6 @@ const ContinentColorsNames = lazy(() => invert(ContinentColors))

const ContinentColorPalette = [
ContinentColors.Africa,
ContinentColors.Antarctica,
ContinentColors.Asia,
ContinentColors.Europe,
ContinentColors.NorthAmerica,
Expand All @@ -357,6 +356,7 @@ const ContinentColorPalette = [
ContinentColors.EasternEurope,
ContinentColors.WesternEurope,
ContinentColors.AustralasiaAndOceania,
ContinentColors.Antarctica,
]

export const ContinentColorsColorScheme = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ThereWasAProblemLoadingThisChart = `There was a problem loading thi

export const WorldEntityName = "World"

export const CONTINENTS_INDICATOR_ID = 123 // "Countries Continent"
export const CONTINENTS_INDICATOR_ID = 900801 // "Countries Continent"
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)"
Expand Down

0 comments on commit b8c6364

Please sign in to comment.