Dv2_task2_Stacked Bar Chart
This stacked bar chart displays NBA player performance across 30 teams, showing each player's games played split into wins and losses. A dropdown menu lets viewers switch between teams, updating the bar chart to display that team's roster. The visualization uses React with reusable components for axes and marks, while D3 v5 functions like `scaleLinear`, `scaleBand`, and `scaleOrdinal` handle the data mapping and color encoding. Data comes from a CSV file loaded via D3's `csv` method, rendered as SVG rectangles with hover tooltips showing exact game counts.
AI-generated descriptionDescription:
The bar chart visualizes the NBA Player State Dataset. It iterates the previous version, which is designed to depict LAL players score per game in 2020-2021 season. A horizontal line is depicted in the chart to emphasize the mean score.
Representations:
- X-axis: Player's name
- Y-axis: Games played
- Bar: Each bar represents a player in the team.
- Interaction: Choose the team with the dropdown menu