{
  "id": "gantt",
  "name": "Time ranges",
  "family": "time",
  "tier": "free",
  "summary": "Use time ranges (a Gantt chart) to show when each item started and ended, so lengths, overlaps and gaps are visible at once.",
  "title": "Since 1990 the Pacific has spent about half its months in El Niño or La Niña",
  "subtitle": "El Niño and La Niña episodes by the Oceanic Niño Index, January 1990 to September 2026",
  "howToRead": "Each bar is one episode from its first to its last month; orange is El Niño, blue La Niña, and darker bars peaked stronger.",
  "useWhen": [
    "each item has a start and an end",
    "durations, overlaps or gaps between items matter",
    "up to about 30 items"
  ],
  "avoidWhen": [
    "items are single moments (use an event timeline)",
    "more than six kinds of item (the rest share one colour)",
    "hundreds of items (aggregate them)",
    "only the totals matter (use bars)"
  ],
  "fields": [
    {
      "name": "episodes[].type",
      "type": "category",
      "description": "the kind of item, which sets its colour (El Niño or La Niña in the example); kinds in order of first appearance, up to six, the rest share one 'other' colour. meta.hints.<kind> adds a word to its key"
    },
    {
      "name": "episodes[].start",
      "type": "date",
      "description": "when the item starts: a year, a month (YYYY-MM, as in the example: the centre month of the first season), a day or an ISO date-time"
    },
    {
      "name": "episodes[].end",
      "type": "date",
      "description": "when the item ends, at any grain: a year, month or day counts through its end; a date-time is the exact end"
    },
    {
      "name": "episodes[].seasons",
      "type": "number",
      "description": "a count shown for each item (overlapping three-month seasons in the example)",
      "unit": "seasons",
      "format": "count"
    },
    {
      "name": "episodes[].peak",
      "type": "number",
      "description": "the item's peak value, which sets its shade (the strongest Oceanic Niño Index value, °C, in the example); a + sign shows only when values run both sides of zero",
      "unit": "°C",
      "format": "decimal"
    },
    {
      "name": "episodes[].ongoing",
      "type": "category",
      "description": "true when the episode was still running in the latest data"
    },
    {
      "name": "last",
      "type": "date",
      "description": "the latest date in the data, at any grain (the end of the timeline); without it the latest end is used"
    }
  ],
  "hints": {
    "start": "1990-01",
    "covered": "in an episode",
    "El Niño": "warm",
    "La Niña": "cool"
  },
  "interactions": [
    "hover or tap a bar to read its dates, length and peak",
    "Play steps through the episodes in order"
  ],
  "motion": "Bars grow from their start month, one episode after another down the page.",
  "sound": "A pop on hover, higher for El Niño than La Niña. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "about half",
      "in": "title"
    }
  ],
  "tags": [
    "gantt",
    "time ranges",
    "durations",
    "climate",
    "El Niño",
    "ocean"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Oceanic Niño Index (ONI), 3-month running mean of ERSST.v5 Niño 3.4 anomalies",
    "publisher": "NOAA Climate Prediction Center",
    "url": "https://www.cpc.ncep.noaa.gov/products/analysis_monitoring/ensostuff/ONI_v5.php",
    "license": "Public domain (NOAA data)",
    "retrieved": "2026-12-01"
  },
  "note": "Episodes are found in the chart's data script with NOAA's rule: at least five overlapping seasons at or above +0.5 °C (El Niño) or at or below −0.5 °C (La Niña)."
}