Giter Club home page Giter Club logo

nbastatsvis's Introduction

NBAstatsVIS

2016 Utah Visualization Course Final Project

Project Page URL: https://wilsoncernwq.github.io/NBAstatsVIS/

Process Book Page URL: https://wilsoncernwq.github.io/NBAstatsVIS/infoPage.html

Demo Video URL: https://youtu.be/J9vgSrZXdQU

Motivation

Visualizing basketball player abilities properly based on statistics is always a hot for sport analysts and basketball fans. There are various basketball data analyzing tools on the internet nowadays, but not many of them can provide user-friendly up-to-date visualizations for general purposes. As basketball enthusiasts, we want to provide such an easy-to-use player profiler for non-experts to explore data and create visualizations based on their own demands.

Project Structure

We stored files based on file functions:

  • data - All data files including JSON, CSV, TXT, etc
  • documents - All documentations of this project, excluding the README.md. The process book is stored inside this folder also
  • external - All external libraries that we used inside the project. They are d3, d3-hexbin, d3-legend, d3-queue and d3-tip
  • python - Python scripts we used for gathering and preprocessing data
  • script - All JavaScript files wrotten by our group
  • stylesheets - stylesheets used in this project. The cssmain.css is the one wrotten by our group, the rests are generated by the github page.
  • index.html - The main page of our project
  • infoPage.html - The information page, where you can find documents including the process book.
  • params.json - data file generated by the github page.

Project Features

  • You can go to documentation page by clicking "About the Project" link
  • Switch player
    • You can switch current player by clicking "Change Player" button
    • You can change filter on the top of the drop-down area
    • You can search the player name by typing key-words in the editable bar
    • You can select player by clicking on its name and the selected player will be displayed
    • You can close the selection menu by clicking "Close Selection"
    • If you have already opened the "Change Player' Menu, the "Compare" button next to it will be disabled automatically until you close the menu
  • Bio-Panel script/InfoView.js
    • By default, all the years the player played will be dislayed. You can select a range of years you interested in by brushing on the timeline
    • On the right of the panel, an overall measurement of the player's performance is displayed. The methods of calculating the indices can be found by hover on the tags. The actual career average data can be viewed by hover on the index numbers. The formula for calculating player impact estimation (PIE) can be dound by hover on the PIE tag
    • You can select a attribute name by clicking on corresponding tags. Then views below will be updated based on your selection
  • Rank Panel script/RankView.js
    • You can hover on the bars to see the focusing view of the data. It shows the actual player ranking of rhe reason your mouse hover on. It shows the ranking number (number after '#'), the player average attribute value of this season (number inside the parentheses) and the player name. There is a star sign in front of the current layer.
  • Game Panel script/GameView.js
    • This panel shows the player data on each game he played. You can hover on the boxes to see the actual game data. The bar chart on the right and the bottom are two 1D histogram and the main plot is actually a 2D histogram. There are interactions between those three charts.
  • Shootting Frequency Panel script/ShotView.js
    • This panel shows the shooting frequency of a player on different locations of the court. Colors are used for encoding shooting percentage (% of field goals made verses those attempted). The size of a hexgon represents the number of shoots attempted here, within the years selected before.
    • You can hover on hexgons to view the detail shooting information
    • There are three 1D histograms showing the frequency summary. The plot on the left shows the histogram in terms of shooting distance to the basket. When you hover on this chart, a grey circle will be displayed indicating the range you selected. The actual data will also be dislayed by text on the left of the bar you selected.
    • The plot on the top shows the histogram along the horizontal axis and the histogram on the right shows the vertical axis. You can see the actual data next to the bar you selected.
  • Compare Player script/CompareView.js
    • You can compare two players in this project
    • By clicking on "Compare" button, you will enter the compare view. You can do query as you did with the "Change Player" mode. By selecting one player, the comparison will be shown below.
    • In this mode, you can not use the "Change Player" button, unless you exit this mode by clicking "Single Player" button
    • You can not brush year in this mode, which was disabled in this mode
    • The bars below shows the comparisons between many attributes of the two players. You can hover on the bars to view their actual data.
    • You can hover on the tag names to see the actual meaning of those attributes

nbastatsvis's People

Contributors

mengjiaoh avatar sqh1107 avatar wilsoncernwq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nbastatsvis's Issues

Spelling Suggestions

A couple of comments on spelling mistakes:

Shotting Frequency -> Shooting Frequency
Field Goal Made -> Field Goals Made
Field Goal Attempted -> Field Goals Attempted

Visualizing basketball player abilities properly based on statistics is always a hot for sport analysts and basketball fans. ->
Visualizing basketball players' abilities based on statistics is a hot topic in sport analysis, both for professional analysts and basketball fans.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.