Skip to main content
100%

Line Chart PL xG Data with both xP and Points

✓ Published1🌍 Public
MMatthew Dzwil
Last edited Feb 27, 2023
Created on Feb 25, 2023

This line chart visualizes Arsenal's expected goals (xG) data across Premier League matchweeks, comparing their xP (expected points) against actual Points earned. The visualization uses a red solid line for points and a green dashed line for xP, with both plotted against the same axis. Built with D3.js v7, the implementation uses `scaleLinear` for axes and the `line()` generator to create path elements. The data is loaded via `csvParse` from a GitHub gist containing the 2021-22 season statistics.

AI-generated description

A line chart of the PL xG data with axes.

Help from: https://www.youtube.com/watch?v=dlaLjJWr3fo

MIT Licensed

Similar vizzes