Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot PL xG Data with both xP and Points with menu

Public visualization

Viewing a saved revision (read-only)

85ccb193045c4b63886c24be25c1d1af

Scatter Plot PL xG Data with both xP and Points with menu

0 stars1🌍 Public
MMatthew Dzwil
Last edited Apr 5, 2023
Created on Mar 23, 2023

This interactive scatter plot visualizes Premier League data for a selected team, comparing actual points against expected points (xP) across matchweeks. A dropdown menu lets users choose among teams, updating two overlaid lines: a solid red line for actual points and a dashed black line for xP. Built with D3 v7, the visualization fetches CSV data from GitHub Gists, uses scaleLinear for axes, and implements a custom dropdown with scroll functionality. The menu, axes, and scatter plot are modularized into separate JavaScript functions, with styled red accents matching team colors.

AI-generated description