Skip to main content
100%

Fork of NBA Players State Bar Chart

✓ Published0🌍 Public
Ddominicmecca07@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This interactive bar chart displays NBA player statistics for each of the 30 teams, letting viewers select both a team and a specific metric (points, field goals, rebounds, assists, steals, or blocks) via dropdown menus. For rebounds, bars split into offensive and defensive components with a color legend. The chart uses D3's `scaleBand` and `scaleLinear` for axes, renders bars as SVG `rect` elements with hover effects, and draws a mean line using D3's `line` generator. Data comes from a CSV of player stats, and the visualization is built with React and `react-dropdown` for controls.

AI-generated description

Description:

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
  • Bar: Each bar represents a player in the team.

What's new

  • Choose the team with the dropdown menu
  • Choose the Y-axis representation with the dropdown menu
  • For Rebounds, the bar is separeated into Offensive Rebounds and Defensive Rebounds
  • Add hover effects
MIT Licensed

Similar vizzes