Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot PL xG Data with both xP and Points

Public visualization

Viewing a saved revision (read-only)

7a43eaaab28644ffa71f4be4665d2d1a

Scatter Plot PL xG Data with both xP and Points

0 stars2🌍 Public
MMatthew Dzwil
Last edited Feb 20, 2023
Created on Feb 20, 2023

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 description

A scatter plot of the PL xG data with axes.

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