Fork of How its made step by step: Baseball Hitting Metrics Dashboard
This dashboard visualizes relationships among baseball hitting metrics, such as bat speed, exit velocity, attack angle, and hand speed, using an interactive scatter plot. Users switch axis metrics via dropdown selectors, and hovering over points reveals detailed data in a tooltip. Built with React and D3 v7, the chart uses `scaleLinear`, `axisBottom`, `axisLeft`, and `transition` for animated updates. Data loads from a CSV file (`poi_metrics.csv`) through a custom hook, with axes and point sizes adapting to the container using `ResizeObserver`.
AI-generated descriptionBaseball Hitting Metrics Dashboard
An interactive data visualization dashboard for analyzing baseball hitting metrics using React and D3.js. This application allows users to explore relationships between different hitting performance metrics through interactive scatter plots.
Features
- Interactive scatter plot visualization
- Real-time metric selection for X and Y axes
- Responsive design that adapts to different screen sizes
- Hover tooltips showing detailed data points
- Smooth animations and transitions
- Clean, modern UI design
How It's Made
Tech Stack
- React 19 - Frontend framework for building the user interface
- D3.js v7 - Data visualization library for creating interactive charts
- Modern JavaScript (ES6+) - Using ES modules and modern syntax
- CSS3 - Custom styling with responsive design
- HTML5 - Semantic markup structure
Architecture
The application follows a modular React component architecture with custom hooks for data management and D3 integration: