{
  "id": "dendrogram",
  "name": "Dendrogram",
  "family": "hierarchy",
  "tier": "free",
  "summary": "Use a dendrogram to show a cluster tree: which items are most alike, in what order groups merge, and how far apart they are when they do.",
  "title": "Climate twins: London pairs with Paris, Mumbai with Singapore, Sydney with Cape Town",
  "subtitle": "20 cities clustered by their monthly mean temperatures in 2024; branch depth is the average gap between groups, °C",
  "howToRead": "Cities joined by a short branch on the right have similar years; the further left two branches meet, the more their climates differ.",
  "useWhen": [
    "items were clustered and the merge order and distances matter",
    "5 to 60 leaves with readable names",
    "you want readers to choose how many groups to cut into"
  ],
  "avoidWhen": [
    "the tree is a real hierarchy, not a clustering (use a tree or an indented tree)",
    "hundreds of leaves (use a heatmap with a dendrogram edge, or a radial tree)",
    "the distance measure is not explained"
  ],
  "fields": [
    {
      "name": "name",
      "type": "category",
      "description": "a leaf: the city"
    },
    {
      "name": "months",
      "type": "number",
      "description": "a leaf's values, one per period, in order (12 monthly mean temperatures in 2024, °C, in the example; any count works, named by hints.periods, else month initials for twelve, else 1 to N)",
      "unit": "°C",
      "format": "decimal"
    },
    {
      "name": "height",
      "type": "number",
      "description": "an inner node: the average distance between the two groups it joins",
      "unit": "°C",
      "format": "decimal",
      "fixed": true
    },
    {
      "name": "children",
      "type": "id",
      "description": "an inner node's two subtrees"
    }
  ],
  "hints": {
    "pivot": 15,
    "noun": "cities",
    "period": "2024",
    "whole": "year"
  },
  "interactions": [
    "hover or tap a city to read its months and its closest twin",
    "hover a join to read who merges there and how far apart they are",
    "Play cuts the tree into 2 to 6 groups"
  ],
  "motion": "Branches grow from the cities back towards the root, in the order the clustering merged them.",
  "sound": "A pop on hover, warmer cities higher. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "Climate twins",
      "in": "title"
    }
  ],
  "tags": [
    "dendrogram",
    "cluster tree",
    "hierarchical clustering",
    "similarity",
    "climate",
    "cities",
    "weather"
  ],
  "mobile": "desktop",
  "mobileNote": "On a phone labels are hard to read or overlap (checked by eye)",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Historical Weather API: daily mean 2 m temperature, 2024 (ERA5 reanalysis)",
    "publisher": "Open-Meteo (Copernicus Climate Change Service ERA5)",
    "url": "https://open-meteo.com/en/docs/historical-weather-api",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "Distance is the Euclidean distance between two cities' 12 monthly means; groups merge by average linkage. Sydney's and Cape Town's seasons are flipped, so they pair with each other rather than with northern cities of a similar average."
}