Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandrocollares/beyond-the-3-point-arc
A responsive scatter plot that shows the percentage of points scored by NBA teams via 3-point and mid-range field goals
https://github.com/leandrocollares/beyond-the-3-point-arc
d3 data-visualization react
Last synced: 8 days ago
JSON representation
A responsive scatter plot that shows the percentage of points scored by NBA teams via 3-point and mid-range field goals
- Host: GitHub
- URL: https://github.com/leandrocollares/beyond-the-3-point-arc
- Owner: leandrocollares
- Created: 2020-04-04T00:07:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T05:54:35.000Z (over 1 year ago)
- Last Synced: 2024-03-26T13:05:20.439Z (8 months ago)
- Topics: d3, data-visualization, react
- Language: JavaScript
- Homepage: https://leandrocollares.github.io/beyond-the-3-point-arc/
- Size: 2.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Beyond the 3-point arc
A responsive, interactive scatter plot that displays the percentages of points scored by NBA teams via 3-point and mid-range field goals. The visualization offers the following interaction possibilities:
* Moving the slider allows users to see the variation of the said percentages between 1999-2000 and 2018-2019 seasons.
* Hovering over a circumference causes a tooltip containing the percentages of 3-point and mid-range field goals scored by the team to be shown.
The visualization was implemented with [React](https://reactjs.org/) and [D3](https://d3js.org/). React renders visualization components, whereas D3 handles data and axis calculations. Thanks to React Hooks, only functional components were employed.
The [ResizeObserver API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) and [Amelia Wattenberger](https://wattenberger.com/)'s useChartDimensions hook were used to make the
scatter plot responsive. Please refer to [React + D3.js](https://wattenberger.com/blog/react-and-d3) for further information.This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Getting started
* Clone or download the repository
* Navigate to the project directory: ```cd beyond-the-3-point-arc```
* Install dependencies: ```npm install```
* Run the app in development mode: ```npm start```
Please refer to the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started) for further information.
## Data source
[NBA](https://stats.nba.com/)