🌍 Public
A7 Small Multiples
This visualization uses small multiples to compare four World Cup metrics—goals scored, teams, games, and attendance—as line charts over time. Each metric gets its own SVG chart with shared axes, making trends easy to scan. The code loads data from a CSV via `d3.csv`, parses numeric fields, and uses `d3.line` with linear scales for each chart. A color-coded legend, created with `d3.legendColor`, maps the four categories, while titles label each small multiple. The layout relies on D3 v7’s axis generators and a fixed SVG structure for consistent comparison.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
Comments
Sign in to join the discussion.