Skip to main content
100%

Scatter Plot PL xG Data

✓ Published1🌍 Public
MMatthew Dzwil
Last edited Feb 20, 2023
Created on Feb 19, 2023

This scatter plot shows Arsenal’s points and expected points (xP) per matchweek across a Premier League season. A single SVG canvas displays two overlaid linear scales mapping matchweek to points and xP, with axes labeled accordingly. The code uses D3 v7 primitives like `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` from the `axes` module. Data is loaded via `csvParse` from a raw GitHub CSV, filtered for Arsenal, and rendered as circles using `selectAll('circle').join()`. The visualization clarifies how actual results compare to underlying performance metrics.

AI-generated description

A scatter plot of the PL xG data with axes.

Help from: https://observablehq.com/@d3/d3-scaleordinal

MIT Licensed

Similar vizzes