Skip to content

3d visualization of a hockey game from play by play data

Notifications You must be signed in to change notification settings

afnleaf/hockey3d

Repository files navigation

hockey3d

3d visualization of a hockey game from play by play data

concept:

  • find play by play data
  • parse out important game events into csv
  • render scene using csv data

example:

csv data points:

event_id,             0
type_code,            1
event_type,           2
period,               3
time_period_mmss,     4
time_period_seconds,  5
time_game_seconds,    6
x_coord,              7
y_coord,              8
player_id,            9
team_id,              10
shot_type,            11
shot_miss_reason,     12
highlight_clip_url    13

Ok we have our csv, so now what can we do with this?

For our first visualization lets try a Three.js render of (x,y) for each shot with corresponding team color

What else?:

  • we have a 3d viz, is there more data to grab from the play by play?
  • I would like to know what part of the next that shots go, where are saves and where are goals?

System Architecture

  • we want to be able to be a web server and an html packer at the same time
  • first lets get the game_data.csv packed up into the html all in one go

API Routes

About

3d visualization of a hockey game from play by play data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published