Open kevkan opened 8 years ago
So, mocking this up in my head:
Jumping to the page should call be woi.com/individual_game/
I think it makes the most sense to populate the page with json data in the flask view, since it seems like this is a one call and done kinda page.
Thinking through the logic in pseudo sql:
select * from individual game as game
join teams on team.id in game.teams
join players on players.id in teams.id
join shifts on shifts.player_id = player.id and shifts.game_id = game.id
join events on
Here's a sample of the json I'm currently using for the running tally and shift charts. There's several "types" of objects within it:
I'm not sure combining all this data into a single json file is the best way to serve the data, so I'm completely open to you providing this data in a different way, and I can change the d3.js code to use it.
Sample data corsi-and-shift-chart-data.txt
Sample chart