🌍 Public
Viewing a saved revision (read-only)
fe08b289e5724fc5958c19cbd613c71d
NBA Hex Shot Chart v2
This visualization compares NBA shot charts for Damian Lillard and Giannis Antetokounmpo, displaying hexagonal bins colored by each player’s field goal percentage relative to the league average, with hexagon size reflecting shot frequency. It uses D3’s `hexbin`, `scaleLinear`, `scaleSequential`, and `interpolateRdYlBu` to render SVG hexagons over a basketball court path. Shot data is loaded from CSV files, and separate legends for frequency and FG% differential are generated via a custom `legendChart` function.
AI-generated descriptionNBA Hex Shot Chart Comparison
Reusable Charts 2021 Verison.
https://gist.github.com/anxietyattacked/868d0e67d3dae4826b73b10366bdd138