Field card

File: bel-sen-home-range.html Pattern: colour-and-area-as-notation for spatial density; the reinvented heatmap — nested isopleth contours instead of a gaussian smear; a two-thing overlap read as a duel; the same disclosed palette exception the mosaic uses.

The brief that produced it

Reinvent the football heatmap — the honest, Byrne way — from the real Belgium 3–2 Senegal match data. One idea, one interactive study. Do not render a literal blurry broadcast heatmap; find the figure that makes the density mean something. The one idea chosen: a player keeps a home range, not a position — draw each player's sampled positions as nested density contours (50 / 75 / 90 % of his mass), and let the reader overlay two players who shared the pitch to see the ground they held in common. Warm-paper plate, colour as honest notation, accessible, one embedded data block so it regenerates for another match.

This is the fourth study from the same match; it deliberately diverges from the earlier plates (Voronoi pitch-control, comeback lead-ribbon, xG, nominal-formation replay, single-mean average-position map) by being about distribution, not one point per player, and by refusing the blurred smear that a raw heatmap would be.

Source of truth

SofaScore / Opta, match 12813013 (World Cup 2026 knockout), pulled with sofascore_match.py. Match page: https://www.sofascore.com/football/match/senegal-belgium/rUbsOUb.

Three embedded data blocks — nothing hand-typed, so a future match's files drop straight in:

  • MATCH_DATA — heatmaps.json: {players:[{id,name,side,points:[[x,y],…]}]}. Each points array is a player's sampled position density over his minutes (touch/tracking-derived, binned — real but coarse, not frame-by-frame). The away side is rotated 180° (x'=100−x, y'=100−y) into a shared attacking frame so the two sides overlay.

  • INTERVALS — each player's [on, off] minute, computed from lineups.json (starters) plus the substitution rows of incidents.json. This is what gates the "shared the pitch" rule and the minutes-together readout.

  • LINEUP — formation string + ordered starters + subs per side (lineups.json), used to place the roster dots at their formation slots and to detect two picks sharing a row.

Method (all live in JS): Gaussian KDE, bandwidth 6.5 on a 100×100 grid; isopleth levels are the density thresholds that enclose 50 / 75 / 90 % of a player's sampled mass, traced with marching squares; the shared core is the contour of min(dA/lA, dB/lB) at 1. The overlap readout is the intersection-over-union of the two 50 % cores, recomputed live. Verified against the raw JSON and rendered in a real browser before saving.

Design choices worth keeping

  • Contours, not a smear. The insight (a player has a shape, not a dot) is what a heatmap gestures at but drowns in blur. Nested isopleths make density readable as area and edge; the cross-hatched intersection turns two ranges into a single duel without a second figure. Default view is the flank duel Castagne (Belgium) × Mané (Senegal): 94 minutes together, ~86 % of Mané's core inside Castagne's.

  • A disclosed palette exception — shared with the mosaic. Belgium in Byrne red #d42a20, Senegal in its national green #00853f, a deliberate step outside Byrne's red/blue/yellow to honour the side. Kept flat; named in the doc-comment and here, not smuggled in. Both bel-sen widgets now speak one team-colour language — worth hoisting into a shared constant when they're promoted.

  • Honesty in the interaction, not just the caption. You can only compare two players who were on the pitch together — the shared-minutes gate comes from the substitution feed, and roster dots that never overlapped the current pick dim out. Swap logic follows the duel: with a cross-team pair a new click replaces the same-team player (the opponent stays fixed, so you can browse "who else shared Mané's ground"); otherwise it switches the last pick. Substitutes are selectable but flagged — a short shift gives a blurrier range, never presented as equal to a full one.

  • A calm picker. Two vertical formation maps (each team attacking up), players as plain team-coloured dots at their formation slots; the name is Byrne-black bold on hover/selection only, so nothing shouts. Substitutes are a small comma-separated line beneath each pitch. Two same-row picks alternate their labels above/below so they never collide.

  • Accessible by construction. sr-only summary; role/aria-pressed on every dot; arrow-key + Enter/Space roster navigation; a readout that names the teams in words so the red/green (the one colour pairing that fails for colour-blind readers) survives without colour, backed by the two separately-labelled pitches.

What it teaches the studio

Two things. First, the reinvention is in the geometry: the same underlying data that makes a broadcast heatmap becomes notation the moment you draw its level sets instead of its blur — density as contour, overlap as intersection. Second, a palette exception can be a through-line: the national green that honours Senegal in the mosaic honours it again here, and naming it in both places makes it read as an editorial voice across a set of plates rather than a one-off. Template legs #2 (colour/area as notation) and #4 (pick-two-to-understand), plus a second worked example of breaking guideline #5 for a real, disclosed reason.

For promotion to a component

What this sketch still needs to become a real registry component (Host / capability model, DESIGN.md §7/§8):

  • renderStatic / no-JS fallback — the default Castagne × Mané plate as static SVG (contours are already SVG paths; the KDE/marching-squares step just needs to run at build/serialize time instead of in the browser).

  • describe() — a text description of the current selection and overlap for the a11y contract (the live sr-only summary is already the seed).

  • Data manifest / provenance envelope — the three inline blocks (MATCH_DATA, INTERVALS, LINEUP) become the component's data tiles with id / component / schemaVersion / dataVersion; the sofascore_match.py pull is the documented producer.

  • Shared palette constant — Belgium #d42a20 / Senegal #00853f are hard-coded in both this study and the mosaic; hoist to one place so future match widgets inherit the team-colour language and the disclosed exception travels with it.

  • Detachability — no sendPrompt/host dependency remains (removed for the note context); links are plain <a href>; the widget is otherwise self-contained.