Skip to main content
Public

Share visualization

Loading preview…

Arsenal: Expected Goals vs Actual Goals by Season

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Viewing a saved revision (read-only)

fyI_Y7V12O0o5wHC_UKiv

Arsenal: Expected Goals vs Actual Goals by Season

0 stars0Public
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 description

React 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 — loads data.csv and 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.