This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data: | |
http://www.sports-reference.com/olympics/summer/ | |
https://en.wikipedia.org/wiki/Summer_Olympic_Games | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FIRST_YEAR = 325; | |
const LAST_YEAR = 3000; | |
const WIDTH = 960; | |
const HEIGHT = 500; | |
const INSETS = {'left': 40, | |
'right': 10, | |
'top': 10, | |
'bottom': 60}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lapCount": 58, | |
"laps": [ | |
{ | |
"name": "Sebastian Vettel", | |
"placing": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], | |
"pitstops": [9], | |
"mechanical": [25] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lapCount": 58, | |
"laps": [ | |
{ | |
"name": "Sebastian Vettel", | |
"placing": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], | |
"pitstops": [9], | |
"mechanical": [25] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO | |
Improved year labels (mouseover -> shows full name in tooltip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix resize | |
Possibly add +1 to End year and 0.5 to medal years | |
Add year of birth and death | |
Colour medal lines (by team), player bar/name (by state of origin) | |
Add player URL and image URL to spreadsheet and infobox |
NewerOlder