WWaleed Mirza
Last edited Nov 20, 2026
Created on Nov 20, 2026
This visualization plots Arsenal’s expected goals against actual goals scored per match, with each season represented by a distinct color. A dropdown-like interface filters data by season, while a zoomable, pannable scatterplot uses d3.zoom and rescaleX/rescaleY to inspect dense areas. Hovering or clicking circles highlights them via React state, and text labels appear when zoomed past a threshold. Data comes from a CSV loaded with d3.csv, and rendering uses D3’s join pattern with circle and text elements.
AI-generated descriptionReact D3 Starter
A minimal React + D3 starter for building interactive data visualizations.
Files
index.html— page shell and import map (React + D3 from a CDN).index.jsx— mounts the<App />component.App.jsx— loadsdata.csvand renders the visualization.viz.js— D3 render entry point.renderCircles.js— draws the circles.useContainerDimensions.js— tracks the container size.data.csv— sample data.styles.css— page styles.
Getting started
Edit App.jsx to change what gets rendered; the preview updates live as you type.
Comments
Sign in to join the discussion.