Gist 0ff68c82fce6408905fe7964eaf25be3
✓ Published0🌍 Public
CConorAspell
Last edited Dec 18, 2020
Created on Dec 18, 2020
The visualization ranks ten Premier League midfielders by their current fantasy football weight, mapping each player’s name to a horizontal bar chart. It shows relative player value through bar length, with heavier weights (e.g., Harrison at 27.5) extending farther than lighter ones (e.g., Walcott at 21.5). The code uses D3.js’s `scaleBand` and `scaleLinear` to position and size the bars, while `d3.select` and `attr` methods bind the CSV data from `player_in_weights.csv` to SVG rectangles. Player names and weights are appended as text labels using `text` and `attr` calls, with the chart’s axes and gridlines drawn via `d3.axisBottom` and `d3.axisLeft`.
AI-generated description