Skip to main content
100%

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

✓ Published1🌍 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
MIT Licensed

Similar vizzes