Skip to main content
100%

Fork of season bar chart v1

✓ Published0🌍 Public
MMichael Bergerson
Last edited Mar 22, 2021
Created on Mar 7, 2021
Forked from season bar chart

This visualization displays game-by-game statistics for a basketball player, with bars representing the selected metric (points, rebounds, assists, etc.) across game dates. A dropdown menu lets users switch between different statistical attributes, updating the y-axis and bar heights accordingly. The chart is built using React with D3 version 5 for scales, axes, and rendering SVG elements, pulling data from a CSV file of Giannis Antetokounmpo’s game log. The code uses `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and custom React components for axes, marks, and the dropdown.

AI-generated description
MIT Licensed

Similar vizzes