Scatter Plot PL xG Data with both xP and Points
✓ Published2🌍 Public
This scatter plot visualizes Arsenal’s Premier League performance by overlaying actual points and expected points (xP) across matchweeks. Red and green circles distinguish the two metrics, with both plotted against the same axes. The visualization uses d3.scaleLinear for scales, d3.scaleOrdinal for coloring, and d3.axisLeft and d3.axisBottom for axes. Data is fetched as CSV and parsed with d3.csvParse, then filtered to Arsenal. The chart updates responsively with window dimensions and renders separate groups for points and xP values.
AI-generated descriptionA scatter plot of the PL xG data with axes.
Help from: https://observablehq.com/@d3/d3-scaleordinal
MIT Licensed