{
  "id": "chernoff-faces",
  "name": "Chernoff faces",
  "family": "relationships",
  "tier": "pro",
  "summary": "Use Chernoff faces to show three or four measures per item as features of a face, for a quick, human read of which items are alike and which stand out; fun, not exact.",
  "title": "Costa Rica smiles almost as wide as Finland on half the income",
  "subtitle": "Happiness (0–10 life evaluation), life expectancy and GDP per person (PPP) for 12 countries",
  "howToRead": "Each face is one country: a wider smile is a higher happiness score, bigger eyes a longer life expectancy and a wider face a higher GDP per person (log scale).",
  "useWhen": [
    "3 or 4 measures per item for 6 to 20 items",
    "spotting similar and odd items matters more than exact values",
    "a playful hook before a proper chart"
  ],
  "avoidWhen": [
    "readers need any value exactly",
    "some features are seen as more important than others (a smile outweighs a face width)",
    "the topic is too serious for cartoon faces",
    "more than three measures (only three become features)"
  ],
  "fields": [
    {
      "name": "country",
      "type": "place",
      "description": "the item, one face each; its first three number columns (or hints.roles) are the smile, eyes and face width"
    },
    {
      "name": "happiness",
      "series": true,
      "type": "number",
      "description": "average life evaluation, 0 to 10 (Cantril ladder)",
      "unit": "points (0–10)",
      "format": "decimal"
    },
    {
      "name": "happinessYear",
      "series": true,
      "type": "year",
      "description": "optional: year of the happiness score (hints.yearOf pairs a measure with its year column)"
    },
    {
      "name": "lifeExpectancy",
      "series": true,
      "type": "number",
      "description": "life expectancy at birth, years",
      "unit": "years",
      "format": "decimal"
    },
    {
      "name": "lifeYear",
      "series": true,
      "type": "year",
      "description": "optional: year of the life expectancy"
    },
    {
      "name": "gdpPerCapita",
      "series": true,
      "type": "number",
      "description": "GDP per person, international $ at 2021 prices (PPP)",
      "unit": "USD",
      "format": "currency"
    },
    {
      "name": "gdpYear",
      "series": true,
      "type": "year",
      "description": "optional: year of GDP per person"
    }
  ],
  "hints": {
    "roles": {
      "smile": "happiness",
      "eyes": "lifeExpectancy",
      "width": "gdpPerCapita"
    },
    "log": [
      "gdpPerCapita"
    ],
    "yearOf": {
      "happiness": "happinessYear",
      "lifeExpectancy": "lifeYear",
      "gdpPerCapita": "gdpYear"
    },
    "sorts": {
      "happiness": "Happiest first",
      "lifeExpectancy": "Longest lives first",
      "gdpPerCapita": "Richest first"
    }
  },
  "interactive": [
    "sort"
  ],
  "interactions": [
    "sort the faces by happiness, life expectancy or income",
    "hover or tap a face for its three numbers"
  ],
  "motion": "The faces start straight-faced and their smiles or frowns arrive one by one; sorting slides the faces to their new places.",
  "sound": "A whoosh when re-sorting; a pop on hover. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "callout",
      "at": "Costa Rica",
      "text": "{label}: {value}"
    },
    {
      "type": "underline",
      "words": "half the income",
      "in": "title"
    }
  ],
  "tags": [
    "Chernoff faces",
    "glyphs",
    "multivariate",
    "happiness",
    "wellbeing",
    "economics",
    "health"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [],
  "bestRatio": "9:16",
  "source": {
    "title": "Self-reported life satisfaction; Life expectancy; GDP per capita, PPP",
    "publisher": "Our World in Data (World Happiness Report; UN World Population Prospects; World Bank)",
    "url": "https://ourworldindata.org/grapher/happiness-cantril-ladder",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "Happiness and GDP per person are the latest year available (2025); life expectancy is 2023. Brows follow the smile; noses carry no data.",
  "reference": {
    "title": "The use of faces to represent points in k-dimensional space graphically",
    "author": "Herman Chernoff (1973)",
    "url": "https://en.wikipedia.org/wiki/Chernoff_face"
  }
}