-
-
Save anonymous/73767303ccd0e8fdf826 to your computer and use it in GitHub Desktop.
2015 NFL Schedule
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
{ | |
"49ers": [ | |
{ | |
"location": "49ers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "packers", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "49ers", | |
"type": "bye", | |
"week": 10 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "rams", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"bears": [ | |
{ | |
"location": "bears", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "packers", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "bears", | |
"type": "bye", | |
"week": 7 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "lions", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"bengals": [ | |
{ | |
"location": "bengals", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "bengals", | |
"type": "bye", | |
"week": 7 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "browns", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "texans", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "rams", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"bills": [ | |
{ | |
"location": "bills", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "colts", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "giants", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "london", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "bills", | |
"type": "bye", | |
"week": 8 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "texans", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "jets", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"broncos": [ | |
{ | |
"location": "broncos", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "broncos", | |
"type": "bye", | |
"week": 7 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "packers", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"browns": [ | |
{ | |
"location": "browns", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "titans", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "browns", | |
"type": "bye", | |
"week": 11 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"buccaneers": [ | |
{ | |
"location": "buccaneers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "titans", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "buccaneers", | |
"type": "bye", | |
"week": 6 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "giants", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "saints", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "bears", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"cardinals": [ | |
{ | |
"location": "cardinals", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "saints", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "rams", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "cardinals", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "packers", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"chargers": [ | |
{ | |
"location": "chargers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "lions", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "browns", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "bears", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "chargers", | |
"type": "bye", | |
"week": 10 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"chiefs": [ | |
{ | |
"location": "chiefs", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "bears", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "london", | |
"opponent": "lions", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "chiefs", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "bills", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "browns", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"colts": [ | |
{ | |
"location": "colts", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "jets", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "saints", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "colts", | |
"type": "bye", | |
"week": 10 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "texans", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "titans", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"cowboys": [ | |
{ | |
"location": "cowboys", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "giants", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "cowboys", | |
"type": "bye", | |
"week": 6 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "jets", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"dolphins": [ | |
{ | |
"location": "dolphins", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "bills", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "london", | |
"opponent": "jets", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "dolphins", | |
"type": "bye", | |
"week": 5 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "texans", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "giants", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "colts", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"eagles": [ | |
{ | |
"location": "eagles", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "saints", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "giants", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "eagles", | |
"type": "bye", | |
"week": 8 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "bills", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"falcons": [ | |
{ | |
"location": "falcons", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "texans", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "falcons", | |
"type": "bye", | |
"week": 10 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "colts", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "saints", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"giants": [ | |
{ | |
"location": "giants", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "giants", | |
"type": "bye", | |
"week": 11 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "jets", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"jaguars": [ | |
{ | |
"location": "jaguars", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "texans", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "london", | |
"opponent": "bills", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "jaguars", | |
"type": "bye", | |
"week": 8 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "titans", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "colts", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"jets": [ | |
{ | |
"location": "jets", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "browns", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "london", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "jets", | |
"type": "bye", | |
"week": 5 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "bills", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "titans", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"lions": [ | |
{ | |
"location": "lions", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "bears", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "london", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "lions", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "packers", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"packers": [ | |
{ | |
"location": "packers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "rams", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "packers", | |
"type": "bye", | |
"week": 7 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "lions", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "bears", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"panthers": [ | |
{ | |
"location": "panthers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "texans", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "saints", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "panthers", | |
"type": "bye", | |
"week": 5 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "colts", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "packers", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"patriots": [ | |
{ | |
"location": "patriots", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "patriots", | |
"type": "bye", | |
"week": 4 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "jets", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "redskins", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "bills", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "titans", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"raiders": [ | |
{ | |
"location": "raiders", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "raiders", | |
"type": "bye", | |
"week": 6 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "jets", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "vikings", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "packers", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"rams": [ | |
{ | |
"location": "rams", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "rams", | |
"type": "bye", | |
"week": 6 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "browns", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "bears", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "lions", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"ravens": [ | |
{ | |
"location": "ravens", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "steelers", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "browns", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "ravens", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "rams", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"redskins": [ | |
{ | |
"location": "redskins", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "rams", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "giants", | |
"opponent": "giants", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "eagles", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "redskins", | |
"type": "bye", | |
"week": 8 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "saints", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "giants", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "bills", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"saints": [ | |
{ | |
"location": "saints", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "cowboys", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "eagles", | |
"opponent": "eagles", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "giants", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "titans", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "redskins", | |
"opponent": "redskins", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "saints", | |
"type": "bye", | |
"week": 11 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "lions", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"seahawks": [ | |
{ | |
"location": "seahawks", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "bears", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "lions", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "cowboys", | |
"opponent": "cowboys", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "seahawks", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "steelers", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "vikings", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "browns", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "rams", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"steelers": [ | |
{ | |
"location": "steelers", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "49ers", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "rams", | |
"opponent": "rams", | |
"type": "away", | |
"week": 3 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "ravens", | |
"type": "home", | |
"week": 4 | |
}, | |
{ | |
"location": "chargers", | |
"opponent": "chargers", | |
"type": "away", | |
"week": 5 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "cardinals", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "chiefs", | |
"opponent": "chiefs", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "bengals", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "browns", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "steelers", | |
"type": "bye", | |
"week": 11 | |
}, | |
{ | |
"location": "seahawks", | |
"opponent": "seahawks", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "colts", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "steelers", | |
"opponent": "broncos", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "ravens", | |
"opponent": "ravens", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"texans": [ | |
{ | |
"location": "texans", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 1 | |
}, | |
{ | |
"location": "panthers", | |
"opponent": "panthers", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "buccaneers", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "colts", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 6 | |
}, | |
{ | |
"location": "dolphins", | |
"opponent": "dolphins", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "titans", | |
"type": "home", | |
"week": 8 | |
}, | |
{ | |
"location": "texans", | |
"type": "bye", | |
"week": 9 | |
}, | |
{ | |
"location": "bengals", | |
"opponent": "bengals", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "jets", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "saints", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "bills", | |
"opponent": "bills", | |
"type": "away", | |
"week": 13 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "patriots", | |
"type": "home", | |
"week": 14 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "titans", | |
"type": "away", | |
"week": 16 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 17 | |
} | |
], | |
"titans": [ | |
{ | |
"location": "titans", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "buccaneers", | |
"opponent": "buccaneers", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "browns", | |
"opponent": "browns", | |
"type": "away", | |
"week": 2 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "colts", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "titans", | |
"type": "bye", | |
"week": 4 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "bills", | |
"type": "home", | |
"week": 5 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "dolphins", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "falcons", | |
"type": "home", | |
"week": 7 | |
}, | |
{ | |
"location": "texans", | |
"opponent": "texans", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "saints", | |
"opponent": "saints", | |
"type": "away", | |
"week": 9 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "panthers", | |
"type": "home", | |
"week": 10 | |
}, | |
{ | |
"location": "jaguars", | |
"opponent": "jaguars", | |
"type": "away", | |
"week": 11 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "raiders", | |
"type": "home", | |
"week": 12 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "jaguars", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "jets", | |
"opponent": "jets", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "patriots", | |
"opponent": "patriots", | |
"type": "away", | |
"week": 15 | |
}, | |
{ | |
"location": "titans", | |
"opponent": "texans", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "colts", | |
"opponent": "colts", | |
"type": "away", | |
"week": 17 | |
} | |
], | |
"vikings": [ | |
{ | |
"location": "vikings", | |
"type": "home", | |
"week": 0 | |
}, | |
{ | |
"location": "49ers", | |
"opponent": "49ers", | |
"type": "away", | |
"week": 1 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "lions", | |
"type": "home", | |
"week": 2 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "chargers", | |
"type": "home", | |
"week": 3 | |
}, | |
{ | |
"location": "broncos", | |
"opponent": "broncos", | |
"type": "away", | |
"week": 4 | |
}, | |
{ | |
"location": "vikings", | |
"type": "bye", | |
"week": 5 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "chiefs", | |
"type": "home", | |
"week": 6 | |
}, | |
{ | |
"location": "lions", | |
"opponent": "lions", | |
"type": "away", | |
"week": 7 | |
}, | |
{ | |
"location": "bears", | |
"opponent": "bears", | |
"type": "away", | |
"week": 8 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "rams", | |
"type": "home", | |
"week": 9 | |
}, | |
{ | |
"location": "raiders", | |
"opponent": "raiders", | |
"type": "away", | |
"week": 10 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "packers", | |
"type": "home", | |
"week": 11 | |
}, | |
{ | |
"location": "falcons", | |
"opponent": "falcons", | |
"type": "away", | |
"week": 12 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "seahawks", | |
"type": "home", | |
"week": 13 | |
}, | |
{ | |
"location": "cardinals", | |
"opponent": "cardinals", | |
"type": "away", | |
"week": 14 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "bears", | |
"type": "home", | |
"week": 15 | |
}, | |
{ | |
"location": "vikings", | |
"opponent": "giants", | |
"type": "home", | |
"week": 16 | |
}, | |
{ | |
"location": "packers", | |
"opponent": "packers", | |
"type": "away", | |
"week": 17 | |
} | |
] | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Animated 2015 NFL Schedule</title> | |
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'> | |
<style type="text/css"> | |
body{ | |
font-family: "Josefin Sans"; | |
} | |
.controls > *{ | |
margin-right: 25px; | |
} | |
.state path{ | |
fill: #efefef; | |
stroke: #ccc; | |
stroke-width: 1px; | |
} | |
</style> | |
</head> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://d3js.org/queue.v1.min.js"></script> | |
<script src="lower48.js" type="text/javascript"></script> | |
<script src="team-schedule.js" type="text/javascript"></script> | |
</body> | |
</html> |
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
/* | |
* Draw a map of the continental United States | |
*/ | |
function usmap(map){ | |
var width = 960; | |
var height = 600; | |
var margin = { | |
top: 75, | |
right: 75, | |
bottom: 75, | |
left: 75 | |
}; | |
var scale = 1200; | |
var svg; | |
var projection = d3.geo.albersUsa() | |
.scale(scale) | |
.translate([width / 2, height / 2]); | |
var path = d3.geo.path() | |
.projection(projection); | |
var stateData = topojson.feature(map, map.objects.states).features; | |
function mapper(holder){ | |
svg = d3.select(holder).append("svg") | |
.attr("width", width + margin.left + margin.right) | |
.attr("height", height + margin.top + margin.bottom) | |
.append("g") | |
.attr("transform", "translate(" + margin.left + "," + margin.top + ")"); | |
projection = projection | |
.scale(scale) | |
.translate([width / 2, height / 2]); | |
path = path.projection(projection); | |
var states = svg.append("g") | |
.classed("country", true) | |
.selectAll("g.state") | |
.data(stateData) | |
.enter().append("g") | |
.classed("state", true) | |
.append("path") | |
.classed("outline", true) | |
.attr("d", path); | |
} | |
/* | |
* setters/getters | |
*/ | |
mapper.width = function(w){ | |
if ( !arguments.length ) { | |
return width; | |
} | |
width = w; | |
return mapper; | |
}; | |
mapper.height = function(h){ | |
if ( !arguments.length ) { | |
return height; | |
} | |
height = h; | |
return mapper; | |
}; | |
mapper.margin = function(m){ | |
if ( !arguments.length ) { | |
return margin; | |
} | |
// make sure that margin has all of the required properties | |
var legit = ["top", "right", "bottom", "left"].every(function(d){ | |
return d in m; | |
}) | |
if ( !legit ) { | |
return; | |
} | |
margin = m; | |
return mapper; | |
}; | |
mapper.scale = function(s){ | |
if ( !arguments.length ) { | |
return scale; | |
} | |
scale = s; | |
return mapper; | |
}; | |
/* | |
* getters | |
*/ | |
mapper.svg = function(){ | |
return svg; | |
}; | |
mapper.projection = function(){ | |
return projection; | |
}; | |
return mapper; | |
} |
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
{"transform":{"translate":[-179.14350338399993,18.90611714300016],"scale":[0.0358960334509451,0.005251163636663664]},"objects":{"states":{"geometries":[{"id":"MA","properties":{"name":"Massachusetts"},"arcs":[[[0]],[[1]],[[2,3,4,5,6,7,8,9]]],"type":"MultiPolygon"},{"id":"MN","properties":{"name":"Minnesota"},"arcs":[[10,11,12,13,14]],"type":"Polygon"},{"id":"MT","properties":{"name":"Montana"},"arcs":[[15,16,17,18,19]],"type":"Polygon"},{"id":"ND","properties":{"name":"North Dakota"},"arcs":[[-14,20,-16,21]],"type":"Polygon"},{"id":"ID","properties":{"name":"Idaho"},"arcs":[[-19,29,30,31,32,33,34]],"type":"Polygon"},{"id":"WA","properties":{"name":"Washington"},"arcs":[[[35]],[[-34,36,37]]],"type":"MultiPolygon"},{"id":"AZ","properties":{"name":"Arizona"},"arcs":[[38,39,40,41,42]],"type":"Polygon"},{"id":"CA","properties":{"name":"California"},"arcs":[[[43]],[[44]],[[45]],[[46]],[[-41,47,48,49]]],"type":"MultiPolygon"},{"id":"CO","properties":{"name":"Colorado"},"arcs":[[50,51,52,53,54,55]],"type":"Polygon"},{"id":"NV","properties":{"name":"Nevada"},"arcs":[[-42,-50,56,-32,57]],"type":"Polygon"},{"id":"NM","properties":{"name":"New Mexico"},"arcs":[[58,59,-39,-53,60]],"type":"Polygon"},{"id":"OR","properties":{"name":"Oregon"},"arcs":[[[-37,-33,-57,-49,61]]],"type":"MultiPolygon"},{"id":"UT","properties":{"name":"Utah"},"arcs":[[62,-54,-43,-58,-31]],"type":"Polygon"},{"id":"WY","properties":{"name":"Wyoming"},"arcs":[[63,-55,-63,-30,-18,64]],"type":"Polygon"},{"id":"AR","properties":{"name":"Arkansas"},"arcs":[[65,66,67,68,69,70]],"type":"Polygon"},{"id":"IA","properties":{"name":"Iowa"},"arcs":[[71,72,73,74,-12,75]],"type":"Polygon"},{"id":"KS","properties":{"name":"Kansas"},"arcs":[[76,-51,77,78]],"type":"Polygon"},{"id":"MO","properties":{"name":"Missouri"},"arcs":[[79,80,81,82,83,-71,84,-79,85,-73]],"type":"Polygon"},{"id":"NE","properties":{"name":"Nebraska"},"arcs":[[-74,-86,-78,-56,-64,86]],"type":"Polygon"},{"id":"OK","properties":{"name":"Oklahoma"},"arcs":[[-70,87,-61,-52,-77,-85]],"type":"Polygon"},{"id":"SD","properties":{"name":"South Dakota"},"arcs":[[-13,-75,-87,-65,-17,-21]],"type":"Polygon"},{"id":"LA","properties":{"name":"Louisiana"},"arcs":[[[88]],[[89,90,-68,91]]],"type":"MultiPolygon"},{"id":"TX","properties":{"name":"Texas"},"arcs":[[[92]],[[93]],[[94]],[[95]],[[96]],[[-69,-91,97,-59,-88]]],"type":"MultiPolygon"},{"id":"CT","properties":{"name":"Connecticut"},"arcs":[[98,99,100,-7]],"type":"Polygon"},{"id":"NH","properties":{"name":"New Hampshire"},"arcs":[[101,-10,102,103,104]],"type":"Polygon"},{"id":"RI","properties":{"name":"Rhode Island"},"arcs":[[[105,-4]],[[106,-99,-6]]],"type":"MultiPolygon"},{"id":"VT","properties":{"name":"Vermont"},"arcs":[[-9,107,108,-103]],"type":"Polygon"},{"id":"AL","properties":{"name":"Alabama"},"arcs":[[[109,110,111,112,113]]],"type":"MultiPolygon"},{"id":"FL","properties":{"name":"Florida"},"arcs":[[[114]],[[115]],[[116]],[[117,-111,118]]],"type":"MultiPolygon"},{"id":"GA","properties":{"name":"Georgia"},"arcs":[[[119,-119,-110,120,121,122]]],"type":"MultiPolygon"},{"id":"MS","properties":{"name":"Mississippi"},"arcs":[[[-113,123,-92,-67,124]]],"type":"MultiPolygon"},{"id":"SC","properties":{"name":"South Carolina"},"arcs":[[[125,-123,126]]],"type":"MultiPolygon"},{"id":"IL","properties":{"name":"Illinois"},"arcs":[[127,128,129,-80,-72,130]],"type":"Polygon"},{"id":"IN","properties":{"name":"Indiana"},"arcs":[[131,132,-129,133,134]],"type":"Polygon"},{"id":"KY","properties":{"name":"Kentucky"},"arcs":[[[135,-83]],[[136,137,138,-81,-130,-133,139]]],"type":"MultiPolygon"},{"id":"NC","properties":{"name":"North Carolina"},"arcs":[[[140,141]],[[-143,-144,-145,-146]],[[146,-127,-122,147,148]]],"type":"MultiPolygon"},{"id":"OH","properties":{"name":"Ohio"},"arcs":[[149,-140,-132,150,151,152]],"type":"Polygon"},{"id":"TN","properties":{"name":"Tennessee"},"arcs":[[153,-148,-121,-114,-125,-66,-84,-136,-82,-139]],"type":"Polygon"},{"id":"VA","properties":{"name":"Virginia"},"arcs":[[[-145,154]],[[155,156]],[[157,158]],[[159,160,161,-141,162,-143,163,-149,-154,-138,164]]],"type":"MultiPolygon"},{"id":"WI","properties":{"name":"Wisconsin"},"arcs":[[[165]],[[166,167,-131,-76,-11,168]]],"type":"MultiPolygon"},{"id":"WV","properties":{"name":"West Virginia"},"arcs":[[169,-165,-137,-150,170]],"type":"Polygon"},{"id":"DE","properties":{"name":"Delaware"},"arcs":[[171,172,173,174,175]],"type":"Polygon"},{"id":"DC","properties":{"name":"District of Columbia"},"arcs":[[176,-161,177]],"type":"Polygon"},{"id":"MD","properties":{"name":"Maryland"},"arcs":[[[-158,178]],[[-173,179]],[[-175,180,-156,181,-178,-160,-170,182]]],"type":"MultiPolygon"},{"id":"NJ","properties":{"name":"New Jersey"},"arcs":[[[183,184,185]]],"type":"MultiPolygon"},{"id":"NY","properties":{"name":"New York"},"arcs":[[[186]],[[-108,-8,-101,187,-185,188,189]]],"type":"MultiPolygon"},{"id":"PA","properties":{"name":"Pennsylvania"},"arcs":[[-184,190,-176,-183,-171,-153,191,-189]],"type":"Polygon"},{"id":"ME","properties":{"name":"Maine"},"arcs":[[[192]],[[-105,193]]],"type":"MultiPolygon"},{"id":"MI","properties":{"name":"Michigan"},"arcs":[[[194]],[[-151,-135,195]],[[196]],[[-167,197]],[[198]],[[199]]],"type":"MultiPolygon"}],"type":"GeometryCollection"}},"type":"Topology","arcs":[[[3040,4278],[2,-19],[-9,4],[7,15]],[[3024,4296],[2,-21],[-7,0],[5,21]],[[3018,4565],[1,-42],[4,-10],[-7,-13],[-4,-45],[7,-8],[9,-96],[12,6],[2,-21],[-13,-8],[-7,-21],[0,33],[-7,-28],[-6,-7]],[[3009,4305],[-2,31]],[[3007,4336],[-1,7]],[[3006,4343],[-3,15],[-1,43],[-12,-1]],[[2990,4400],[-46,8]],[[2944,4408],[-1,15],[7,117]],[[2950,4540],[22,-4]],[[2972,4536],[33,-4],[10,35],[3,-2]],[[2425,5306],[-5,-22],[0,-109],[-12,-33],[-5,-36],[0,-28],[6,-21],[-3,-37],[-1,-97],[6,-28],[14,-34],[7,-48],[12,-30],[4,-25],[1,-74]],[[2449,4684],[-46,0],[-36,0],[-63,0]],[[2304,4684],[0,342],[-7,20],[-5,38],[6,26],[3,39]],[[2301,5149],[-1,68],[-6,62],[-1,147],[-2,47],[-6,86],[-1,91],[2,14],[-4,66]],[[2282,5730],[58,0],[0,71],[9,-11],[3,-99],[13,-27],[10,-2],[4,-23],[14,22],[17,-18],[-2,-18],[7,-9],[2,-33],[3,22],[15,-30],[1,-16],[8,-12],[14,37],[4,-28],[16,7],[8,-25],[7,0],[-12,-33],[-12,-19],[-14,-42],[-16,-82],[-13,-44],[-1,-12]],[[2092,5728],[0,-579]],[[2092,5149],[0,-180]],[[2092,4969],[-42,0],[-61,0],[-49,0],[-43,0],[0,-95]],[[1897,4874],[-7,44],[-5,-7],[-2,-25],[-7,-7],[-12,7],[-4,-20],[-12,4],[-4,-10],[-6,72],[-5,-2],[-4,25],[0,36],[-7,35],[-2,58],[-5,17],[-9,-41],[-6,16],[-1,40],[5,20],[-3,32],[2,27],[2,94],[-6,-7],[-10,41],[0,13],[-16,71],[-6,46],[0,33],[-9,52],[0,190]],[[1758,5728],[36,0],[43,0],[61,0],[74,0],[67,0],[53,0]],[[2301,5149],[-72,0],[-45,0],[-39,0],[-53,0]],[[2092,5728],[45,0],[37,2],[61,0],[47,0]],[[656,235],[11,-31],[2,-23],[0,-25],[8,-47],[-5,-28],[-8,-12],[-7,-32],[-3,-33],[-7,26],[1,51],[-5,82],[6,46],[-1,48],[8,-22]],[[619,347],[-4,35],[5,0],[1,-28],[-2,-7]],[[628,403],[2,-23],[5,10],[9,-30],[0,-21],[-8,-19],[-3,0],[-2,39],[-5,3],[-1,21],[3,20]],[[610,440],[15,-18],[-4,-12],[-13,5],[2,25]],[[592,513],[1,-34],[5,-21],[-5,-11],[-7,8],[-6,54],[6,1],[4,24],[2,-21]],[[527,547],[-1,14],[5,28],[-4,-42]],[[550,633],[3,-11],[-2,-41],[-2,-18],[-5,6],[-5,21],[2,28],[9,15]],[[1897,4874],[0,-476]],[[1897,4398],[-47,0],[-37,0]],[[1813,4398],[-36,0],[-46,0]],[[1731,4398],[0,344],[3,60],[-3,29],[-5,2],[0,44],[9,73],[0,25],[5,30],[0,34],[5,37],[-1,40],[-6,13],[-3,31]],[[1735,5160],[-5,69],[0,499]],[[1730,5728],[28,0]],[[1576,5615],[2,-20],[-7,-10],[5,30]],[[1735,5160],[-61,0],[-1,-11],[-14,-3],[-18,-38],[-11,0],[-7,-17],[-8,-3],[-2,13],[-15,6],[-13,-31],[-14,18],[-1,58],[-4,27],[-7,15]],[[1559,5194],[-3,-6],[-5,23],[-11,-7],[-7,7],[5,45],[3,40],[-8,9],[0,22],[8,14],[-9,16],[-5,61],[-3,70],[-6,34],[-1,93],[18,-41],[29,-16],[6,9],[4,-48],[-9,-55],[6,12],[3,34],[4,8],[1,-28],[-5,-9],[2,-21],[0,-60],[-6,21],[-9,-43],[10,-11],[12,51],[-3,29],[0,63],[5,28],[-5,61],[-7,19],[5,13],[0,49],[-4,-2],[-5,40],[2,10],[58,0],[60,0],[41,0]],[[1953,3445],[0,-1080]],[[1953,2365],[-55,0],[-3,2],[-68,147],[-35,73],[2,41]],[[1794,2628],[6,6],[1,47],[-7,20],[0,62],[6,28],[0,75],[11,71],[-7,27],[0,19],[-5,41],[-2,41]],[[1797,3065],[2,29],[-3,69],[1,25],[-3,60],[0,29],[11,3],[3,-20],[5,33],[0,152]],[[1813,3445],[53,0],[55,0],[32,0]],[[1687,2691],[6,-40],[-5,5],[-1,35]],[[1688,2775],[5,-12],[2,-23],[-6,6],[-1,29]],[[1646,2880],[-1,-26],[-4,21],[5,5]],[[1651,2887],[9,-14],[-9,-3],[0,17]],[[1794,2628],[-66,-33],[-2,32],[-2,-6],[0,62],[-7,64],[-16,76],[-9,1],[0,32],[-4,26],[-7,-4],[-12,24],[-1,24],[-9,27],[-5,-2],[-10,12],[-9,-4],[-5,20],[0,111],[-7,16],[0,41],[-3,5],[-13,78],[-1,25],[-12,55],[-1,63],[3,-2],[2,33],[-2,27],[-7,6],[-9,51],[0,41],[-4,18],[2,49],[2,4],[0,-39],[10,-27],[-3,38],[-7,51],[5,23],[9,0],[-2,16],[-4,-18],[-8,20],[-2,-6],[1,-55],[-8,13],[-2,21],[-5,-1],[1,51],[-4,32],[-6,23],[-12,76],[2,9],[-4,84],[2,19],[-2,50],[-8,52],[-7,35],[-2,46],[5,36],[4,53],[0,110],[-4,43],[0,43]],[[1529,4398],[60,0],[59,0]],[[1648,4398],[0,-572],[6,-31],[39,-188],[7,-30],[30,-157],[42,-221],[25,-134]],[[2148,4017],[0,-572]],[[2148,3445],[-27,0]],[[2121,3445],[-47,0],[-59,0],[-62,0]],[[1953,3445],[0,762]],[[1953,4207],[52,0],[53,0],[34,0]],[[2092,4207],[56,0],[0,-190]],[[1648,4398],[52,0],[31,0]],[[1813,4398],[0,-953]],[[2121,3351],[-1,-1],[0,-724],[-1,-26],[0,-107],[-43,0],[-57,0],[2,-33],[3,-10]],[[2024,2450],[-49,1],[0,-86],[-22,0]],[[2121,3445],[0,-94]],[[1529,4398],[-3,19],[-2,41],[0,66],[-3,35],[3,53],[0,39],[5,41],[4,160],[0,72],[4,65],[0,121],[1,71],[4,-2],[9,24],[1,-16],[7,7]],[[1897,4398],[0,-191],[56,0]],[[2092,4588],[0,-381]],[[2092,4969],[0,-381]],[[2491,3255],[2,-16],[-8,-34],[1,-37],[-6,-33],[1,-42],[-6,-28]],[[2475,3065],[1,-16],[-6,-17],[-3,-28],[0,-49],[-5,-9],[-5,-48],[2,-16],[-6,-8],[1,-40],[-5,-21],[3,-38],[-2,-30],[3,-10],[-2,-48]],[[2451,2687],[-55,-2],[-25,0]],[[2371,2685],[0,103],[-10,3],[-3,16]],[[2358,2807],[1,42],[0,207],[1,82],[-2,53],[-3,159]],[[2355,3350],[53,0],[71,0],[3,-28],[-2,-26],[-5,-18],[-2,-25],[18,2]],[[2466,4495],[6,-50],[7,-25],[0,-45],[-4,-22],[-1,-30],[-10,-30],[-8,-4],[-3,-46],[4,-39],[-6,-59],[-7,-17],[-1,-39]],[[2443,4089],[-8,46],[-38,-7],[-29,-2],[-45,5]],[[2323,4131],[-2,37],[-1,98],[-7,60],[1,36],[-2,34],[-6,41],[0,48],[-3,12]],[[2303,4497],[-4,35],[5,79],[-3,25],[-1,47],[4,1]],[[2449,4684],[4,-36],[-2,-69],[5,-48],[8,-8],[2,-28]],[[2355,3445],[-45,0],[-33,0],[-45,0],[-51,0],[-33,0]],[[2148,4017],[41,0],[47,0],[64,0],[35,0]],[[2335,4017],[7,-28],[4,9],[1,-32],[-6,-38],[6,-28],[2,-34],[6,-11],[0,-410]],[[2443,4089],[-2,-22],[1,-55],[3,-46],[16,-78],[4,-77],[11,2],[4,-19],[-7,-116],[10,-50],[14,-53],[2,-54],[-2,-26],[5,-48],[6,-6]],[[2508,3441],[-2,-70],[-5,5],[-2,-26]],[[2499,3350],[-2,1]],[[2497,3351],[-1,0]],[[2496,3351],[0,-46],[-4,-2],[2,-25],[-3,-23]],[[2355,3350],[0,95]],[[2335,4017],[-12,114]],[[2092,4588],[34,0],[38,0],[42,0],[41,0],[13,-41],[5,17],[15,3],[5,-20],[12,-21],[2,-26],[4,-3]],[[2358,2807],[-10,20],[-8,37],[-6,-15],[-7,16],[-5,-16],[-9,-6],[-6,-25],[-9,40],[-1,-12],[-8,19],[-3,-40],[-3,31],[-7,-15],[-7,30],[-7,-19],[0,22],[-4,6],[0,23],[-7,-1],[-2,-13],[-22,30],[-1,31],[-12,-2],[-6,34],[-3,2],[0,366],[-65,1],[-19,0]],[[2433,2016],[-6,15],[3,15],[6,-15],[-3,-15]],[[2497,2149],[-13,14],[-6,24],[-7,-38],[3,-24],[9,-5],[4,22],[6,-8],[-5,-14],[4,-31],[7,37],[2,-53],[-3,2],[-7,-31],[1,-21],[16,-46],[1,-26],[-2,-32],[-2,21],[-4,-7],[-3,36],[-10,13],[3,11],[-13,40],[4,-31],[-1,-50],[-4,-14],[-1,31],[-9,8],[-1,-28],[-4,-5],[-16,33],[3,22],[-5,31],[-4,-5],[-2,39],[-7,-3],[1,19],[-10,-12],[4,-35],[-7,-9],[-7,7],[-13,31],[-6,8],[-9,-2],[-7,-12],[1,54]],[[2378,2110],[2,18],[-1,42],[2,70],[3,29],[0,53],[-2,52],[-5,37],[0,34],[-6,44],[0,196]],[[2451,2687],[3,-18],[-3,-32],[1,-52],[6,-35],[-4,-48],[-10,-58],[0,-29],[-3,-11],[0,-45],[-4,-4],[2,-41],[-2,-11],[54,0],[-3,-73],[3,-16],[4,-62],[2,-3]],[[2284,1373],[-1,0],[-3,95],[-2,20],[0,40],[6,-155]],[[2283,1666],[-4,-57],[1,34],[3,23]],[[2288,1706],[3,45],[2,-7],[-5,-38]],[[2305,1797],[-11,-42],[8,40],[3,2]],[[2349,1989],[3,-4],[-11,-42],[8,46]],[[2378,2110],[-4,-23],[2,-33],[-6,-2],[-12,-30],[-7,1],[1,48],[-9,-46],[4,-43],[-6,-26],[-1,-26],[-6,-32],[-8,-24],[-14,-28],[-1,18],[-7,-19],[-6,25],[1,-28],[6,-27],[-7,-22],[-5,20],[1,-38],[-2,-15],[-4,11],[-6,-25],[6,6],[-5,-52],[-7,7],[5,-32],[-4,-72],[-2,15],[-4,-15],[-4,28],[2,-36],[7,-2],[-3,-86],[2,-6],[2,-53],[-1,-17],[9,-85],[-11,-14],[-3,22],[-5,8],[-12,3],[-4,23],[-8,9],[-4,24],[-8,8],[-2,24],[-1,77],[-2,-9],[-5,31],[1,25],[-2,29],[0,45],[-10,38],[-6,71],[-6,25],[-1,44],[-4,21],[-5,57],[0,23],[-4,40],[-7,27],[-10,59],[0,14],[-20,5],[-7,12],[-1,-17],[-8,-6],[-6,-76],[1,-23],[-8,-46],[-7,8],[-8,27],[-2,19],[-5,4],[-9,46],[-5,10],[-7,69],[0,50],[-5,48],[0,18],[-9,48],[-5,9],[-6,44],[-6,18],[-5,42],[-7,19],[-4,41],[-3,11]],[[2990,4400],[-1,-134]],[[2989,4266],[-10,3],[-9,-12],[-10,8],[-6,-29],[-15,-28]],[[2939,4208],[-2,17],[6,22],[0,152],[1,9]],[[3020,4604],[-2,-39]],[[2972,4536],[-3,23],[3,30],[2,56],[0,51],[5,42],[6,105],[9,20],[3,34],[-2,27],[4,48]],[[2999,4972],[1,42],[10,13]],[[3010,5027],[1,-102],[2,-103],[0,-161],[5,-26],[2,-31]],[[3009,4305],[-2,31]],[[3006,4343],[-4,15],[-2,-76],[-11,-16]],[[2950,4540],[0,156],[-5,3],[1,119],[3,40],[-3,39],[1,73]],[[2947,4970],[52,2]],[[2606,3062],[1,-58],[5,-149],[4,-158],[4,-86],[3,-18],[2,-57],[-4,-16],[-2,-65],[2,-32],[-1,-88],[2,-32]],[[2622,2303],[-72,0],[0,-32],[6,-31],[-1,-36]],[[2555,2204],[-1,-23],[-5,-21],[-8,32],[0,46],[-3,15],[-2,-78],[-8,12]],[[2528,2187],[-1,52],[0,108],[-1,18],[0,144],[1,16],[6,308],[0,49],[4,165],[-3,17]],[[2534,3064],[0,3],[36,-4],[36,-1]],[[2752,1190],[-4,-27],[6,63],[-2,-36]],[[2757,1579],[-4,49],[0,29],[4,-78]],[[2745,1840],[-2,-48],[-2,38],[4,10]],[[2720,2247],[2,0],[1,-77],[4,-107],[9,-128],[9,-86],[-5,1],[2,-63],[5,-59],[9,-149],[3,-26],[2,-53],[-1,-95],[-2,-97],[-5,-30],[0,-48],[-3,-21],[-6,-19],[-13,-7],[0,44],[-7,93],[-5,14],[-5,-1],[-3,49],[0,47],[-5,13],[-2,35],[0,50],[-2,-22],[-4,3],[-7,77],[-1,32],[-4,14],[4,12],[5,49],[-8,46],[2,-60],[-6,17],[1,63],[4,59],[-1,65],[2,19],[-4,21],[-1,34],[-7,1],[-1,18],[-9,48],[0,26],[-5,31],[-12,53],[-10,-12],[-2,-16],[-12,-43],[-12,-8],[-1,37],[-6,21],[2,25],[-7,2],[-9,32],[-8,13],[7,0],[-1,21],[-8,6],[-5,-19],[-11,-1],[0,35],[-7,-45],[-6,-13],[3,24],[-2,12]],[[2622,2303],[4,-53],[33,-14],[41,-16],[1,-38],[4,1],[0,72],[4,14],[11,-22]],[[2737,2500],[-2,-32],[-6,-25],[-4,-32],[-1,-34],[3,-26],[-3,-19],[-3,10],[-1,-95]],[[2606,3062],[35,0]],[[2641,3062],[34,3]],[[2675,3065],[-7,-56],[10,-43],[3,0],[9,-98],[9,-36],[2,-31],[7,-26],[0,-22],[5,-39],[7,-23],[3,-54],[0,-31],[6,-20],[1,-68],[7,-18]],[[2528,2187],[-2,-13],[-8,6],[-2,12],[-12,-19],[-1,11],[-4,-37],[-2,2]],[[2475,3065],[59,-1]],[[2802,2852],[-6,-20],[-12,-91],[0,-27],[-8,-32],[-1,9],[-5,-42],[-8,-39],[-13,-28],[1,-19],[-6,-19],[-7,-44]],[[2675,3065],[12,23],[13,15],[33,-10],[7,-35],[0,-26],[32,-6],[11,-68],[19,-106]],[[2545,4492],[-1,-48],[5,-40],[3,-58]],[[2552,4346],[0,-451],[-4,-46],[4,-29],[0,-55],[-6,-53],[-7,-36],[-1,-78]],[[2538,3598],[-3,-19],[1,-43],[-10,-12],[0,-65],[-12,29],[-5,-7],[-3,-28],[2,-12]],[[2466,4495],[39,-2],[40,-1]],[[2628,4340],[0,-495]],[[2628,3845],[-2,-14],[3,-25],[-10,-36],[-9,4],[1,-35],[-6,-22],[-2,-29],[-6,-22],[0,-27],[-4,-9],[-6,18],[0,16],[-7,-20],[0,-21],[-6,-5],[-3,14],[-5,-11],[-1,-23],[-10,28],[-5,-18],[-9,13],[-3,-23]],[[2552,4346],[9,-18],[10,24]],[[2571,4352],[57,0],[0,-12]],[[2497,3351],[-1,0]],[[2690,3716],[-1,-52],[9,-89],[9,-27]],[[2707,3548],[-11,-53],[-9,-23],[-5,-47],[-7,-27],[-15,-29]],[[2660,3369],[-2,-2],[-47,6],[-32,7],[-36,-2],[-6,9],[1,-37],[-39,0]],[[2628,3845],[10,2],[4,-16],[2,-38],[11,-14],[5,-23],[4,15],[6,-20],[12,27],[0,-23],[8,-39]],[[2877,3360],[0,0]],[[2877,3360],[4,-80],[-3,38],[-1,42]],[[2873,3360],[1,0]],[[2876,3360],[-3,0]],[[2875,3360],[1,0]],[[2874,3360],[1,0]],[[2873,3360],[6,-75],[-4,18],[-7,-29],[-9,-17],[-5,9],[-1,-21],[18,10],[1,-60],[2,39],[4,14],[3,-17],[0,-47],[-4,2],[-4,-41],[-4,-14],[-12,8],[-11,18],[8,-26],[6,-8],[-2,-35],[-8,-25],[-7,32],[5,-37],[5,-10],[3,14],[10,-6],[-7,-42],[-17,-11],[-17,-68],[-4,-35],[-1,-35],[-4,-11],[-9,5],[-5,-7]],[[2641,3062],[1,47],[6,4],[2,32],[8,28],[7,1],[6,26],[8,14],[2,32],[8,20],[1,-18],[10,37],[4,-12],[4,39],[7,36],[1,23]],[[2716,3371],[10,-7],[33,-6],[24,0],[55,0],[35,2]],[[2747,4140],[-4,-7],[2,-64],[-4,-37],[-3,-86],[-7,-33],[-7,-20],[-3,9],[-8,-39],[0,-48],[-5,-11],[-2,27],[-4,-25],[-1,-57],[-4,-30],[-7,-3]],[[2628,4340],[37,6]],[[2665,4346],[13,-34],[6,5],[0,-19],[10,-16],[11,23],[10,2],[9,39],[23,48]],[[2747,4394],[0,-254]],[[2660,3369],[48,0],[8,2]],[[2875,3360],[1,0]],[[2883,3630],[8,9]],[[2891,3639],[-15,-131],[-1,-39],[-2,14],[1,49],[9,98]],[[2894,3639],[0,1]],[[2894,3640],[0,-1]],[[2825,3890],[8,-24],[-2,-14],[11,-39]],[[2842,3813],[2,-6]],[[2844,3807],[0,-36],[-4,-8],[-4,-41],[3,-23],[6,9],[2,-32],[10,-16],[2,-20],[8,-26],[-3,-49],[-4,6],[-10,53],[7,-54],[8,-16],[2,-33],[-6,-4],[5,-66],[-5,-11],[-5,28],[-1,-14],[5,-30],[6,14],[8,-9],[3,-69]],[[2877,3360],[-3,30],[0,-30]],[[2873,3360],[0,0]],[[2707,3548],[1,-32],[8,-30],[9,18],[3,-11],[8,9],[2,25],[4,-9],[12,25],[2,57],[12,87],[4,62],[4,-23],[6,-9],[8,80],[3,-11],[13,69],[3,56],[13,-56],[3,35]],[[2566,5025],[-5,-79],[-3,-12],[-2,28],[10,63]],[[2472,5272],[5,-15],[3,-33],[28,-36],[8,-23],[18,-14],[2,-30],[6,-7],[3,-50],[-2,-27],[6,-2],[-3,-28],[4,-18]],[[2550,4989],[-11,-73],[2,-34],[8,52],[5,14],[4,-16],[-5,-53],[0,-66],[-6,-41],[0,-58],[-5,-60],[0,-64],[4,-45],[-1,-53]],[[2425,5306],[4,-15],[15,18],[6,20],[12,6],[-5,-62],[8,9],[7,-10]],[[2777,3964],[-1,-98],[12,52],[3,-6],[6,34],[2,-17],[6,-1],[1,18],[7,15],[9,-17],[3,-54]],[[2747,4140],[0,-176],[30,0]],[[2889,3980],[-5,-39],[1,-32],[5,-32],[0,-41],[4,-37],[5,-11],[1,-65]],[[2900,3723],[0,-1]],[[2900,3722],[-1,1]],[[2899,3723],[-17,1],[-2,128],[-1,112]],[[2879,3964],[3,18],[7,-2]],[[2845,3788],[-1,19]],[[2842,3813],[6,-7],[-3,-18]],[[2894,3639],[0,1]],[[2900,3723],[0,-1]],[[2899,3723],[-2,-43],[-6,-41]],[[2883,3630],[-6,12],[3,24],[-4,0],[-2,39],[-2,-25],[-8,50],[10,17],[-8,32],[2,36],[-2,46],[4,36],[8,32],[-7,3],[1,-16],[-12,-30],[-1,-28],[3,-24],[-3,-35],[0,-62],[3,-40],[-7,25],[9,-55],[0,-21],[-9,34],[-9,21],[-1,18],[-7,-9],[0,23],[7,36],[0,19]],[[2777,3964],[54,0],[48,0]],[[2901,4019],[7,23],[-6,50],[-6,34],[0,37],[4,23],[-3,16],[4,14],[7,57],[2,2]],[[2910,4275],[22,-69]],[[2932,4206],[-5,-62],[-4,-6],[-1,-33],[7,-11],[1,-25],[-5,-105],[-9,-62],[2,-7],[-7,-30],[-6,-50],[-3,-2],[2,48],[-7,0],[-9,50],[-2,30],[5,41],[8,16],[2,21]],[[2978,4233],[-5,-13],[-2,-32],[5,23],[13,7],[-22,-49],[-14,-19],[-24,-26],[1,35],[6,4],[1,19],[9,15],[22,9],[10,27]],[[2939,4208],[-8,-38],[2,67],[-3,20],[2,-51]],[[2910,4275],[-9,30],[-1,50],[-8,42],[-31,0],[-65,1],[-27,0],[0,51]],[[2769,4449],[17,60],[8,45],[-2,49],[-4,4],[0,34],[19,23],[18,-10],[4,-17],[6,8],[11,-4],[8,12],[8,37],[6,6],[-3,59],[7,21],[-9,28],[17,57],[-1,12],[15,70],[7,21],[7,5],[39,1]],[[2901,4019],[-12,-39]],[[2747,4394],[22,55]],[[3091,4838],[-7,-7],[5,30],[2,-23]],[[3010,5027],[7,-3],[4,54],[8,28],[4,33],[0,68],[6,36],[1,50],[22,145],[5,-8],[0,-34],[4,-10],[10,21],[10,8],[11,-51],[0,-250],[4,-29],[6,-1],[-2,-22],[1,-42],[10,-31],[2,-30],[-5,-9],[7,-18],[-7,-31],[-10,-6],[-4,-19],[-3,14],[-7,-47],[-1,27],[-12,-14],[0,-32],[-8,41],[-4,-4],[-4,-80],[-4,-16],[-4,18],[-3,-36],[-2,24],[-7,-48],[-1,25],[-4,2],[-6,-28],[1,-28],[-4,-1],[-1,-31],[-6,-21],[-4,-37]],[[2608,5083],[-3,2],[4,31],[-1,-33]],[[2571,4352],[6,22],[7,72],[5,87],[0,49],[-9,121],[3,35],[-3,57],[8,63],[0,46],[4,17],[1,33],[7,5],[5,46],[2,-81],[5,47],[0,54],[13,26],[-5,11],[3,53],[7,7],[8,-25],[4,1],[5,-31],[5,-2],[15,-37],[4,-51],[-5,5],[4,-41],[-1,-100],[-6,-19],[-4,-42],[-5,-4],[-2,-50],[7,-23],[6,23],[6,50],[9,16],[6,-18],[3,-32],[4,-135],[2,-23],[-3,-68],[-8,8],[-2,-47],[-8,-35],[-1,-37],[-8,-59]],[[2663,5174],[1,-27],[-10,11],[9,16]],[[2472,5272],[11,19],[6,27],[11,5],[13,32],[8,39],[7,-69],[14,10],[6,-19],[9,-58],[11,3],[9,-18],[4,22],[10,26],[17,-1],[9,17],[5,-7],[-1,-42],[14,-18],[5,19],[7,0],[-4,-59],[11,-38],[-3,-10],[-19,16],[-2,-37],[-7,31],[-11,19],[-7,-23],[-17,-7],[-3,-27],[-10,-30],[5,41],[-7,-2],[-2,-26],[-6,1],[-14,-103],[-1,-16]],[[2547,5432],[-14,-40],[-6,-44],[0,23],[-5,6],[5,44],[8,19],[12,-8]],[[2525,5573],[-2,-21],[-16,-44],[-2,17],[20,48]]]} |
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
var map; | |
var svg; | |
var proj; | |
queue() | |
.defer(d3.json, "lower48.json") | |
.defer(d3.json, "teams.json") | |
.defer(d3.json, "games-2015.json") | |
.await(function(error, states, teams, games){ | |
if ( error ) { | |
console.log(error); | |
return; | |
} | |
var teamNames = Object.keys(teams).sort(); | |
var width = 800; | |
var height = 500; | |
var scale = 1200; | |
var radius = 8; | |
// 0-17, 0 meaning the offseason | |
var week = 1; | |
var currentTeam = undefined; | |
var intervalTime = 2500; | |
var scheduleHolder = d3.select("body").append("div") | |
.attr("id", "scheduleHolder"); | |
/* | |
* CONTROLS | |
*/ | |
var controls = scheduleHolder.append("div") | |
.classed({"controls": true}); | |
var select = controls.append("select") | |
.on("change", selectTeamEvent); | |
select.selectAll("option") | |
.data(["all"].concat(teamNames)) | |
.enter().append("option") | |
.text(function(d){ return capitalize(d); }) | |
.attr("value", function(d){ return d; }); | |
function selectTeamEvent(){ | |
currentTeam = select.property("value"); | |
if ( currentTeam === "all" ) { | |
currentTeam = undefined; | |
} | |
week = 0; | |
} | |
var paused = false; | |
var pauseButton = controls.append("button") | |
.text(function(){ return paused ? "Play" : "Pause"; }) | |
.on("click", function(){ | |
paused = !paused; | |
if ( paused ) { | |
clearInterval(animation); | |
} else { | |
animation = animate(); | |
} | |
this.textContent = paused ? "Play" : "Pause"; | |
}) | |
// update the map every "intervalTime" milliseconds | |
function animate(){ | |
return setInterval(function(){ | |
update(week, currentTeam); | |
week = (week+1)%18; | |
}, intervalTime); | |
} | |
var animation = animate(); | |
/* | |
* Continental US Map | |
*/ | |
map = usmap(states) | |
.width(width) | |
.height(height) | |
.scale(scale); | |
map("#scheduleHolder"); | |
svg = map.svg(); | |
proj = map.projection(); | |
// cache projection coordinates (needs projection from the map) | |
var stadiums = {}; | |
for ( var name in teams ) { | |
stadiums[name] = proj([teams[name].coords.long, teams[name].coords.lat]); | |
} | |
// stick london off to the east | |
stadiums["london"] = [width+50, height/2]; | |
/* | |
* SVG | |
*/ | |
var nfl = svg.append("g") | |
.classed({"nfl": true}); | |
var teamLines = nfl.selectAll("line.trip") | |
.data(teamNames) | |
.enter().append("line") | |
.classed({"trip": true}) | |
.attr("x1", function(d){ | |
return stadiums[d][0]; | |
}) | |
.attr("x2", function(d){ | |
return stadiums[d][0]; | |
}) | |
.attr("y1", function(d){ | |
return stadiums[d][1]; | |
}) | |
.attr("y2", function(d){ | |
return stadiums[d][1]; | |
}) | |
.style("stroke", function(d){ | |
return teams[d].colors.secondary; | |
}) | |
.style("stroke-width", 1) | |
.style("stroke-dasharray", "5,5"); | |
var teamCircles = nfl.selectAll("circle.team") | |
.data(teamNames) | |
.enter().append("circle") | |
.classed({"team": true}) | |
.attr("transform", function(d){ | |
var coords = stadiums[d]; | |
return "translate(" + coords[0] + "," + coords[1] + ")"; | |
}) | |
.attr("r", radius) | |
.style("fill", function(d){ | |
return teams[d].colors.primary; | |
}) | |
.style("stroke", function(d){ | |
return teams[d].colors.secondary; | |
}) | |
.style("stroke-width", 2); | |
var weekText = svg.append("g") | |
.attr("transform", function(){ | |
return "translate(400, 0)"; | |
}) | |
.append("text") | |
.text("Offseason") | |
.style("font-size", "36px") | |
.style("text-anchor", "middle"); | |
function update(week, team){ | |
var duration = 1000; | |
teamCircles.transition() | |
.duration(duration) | |
.ease("in-out") | |
.attr("transform", function(d){ | |
var game = games[d][week]; | |
// only animate specified team and its opponent | |
if ( team && d !== team && game.opponent !== team ) { | |
return "translate(" + stadiums[d][0] + "," + stadiums[d][1] + ")"; | |
} | |
var long = stadiums[game.location][0] - (game.type === "away" ? 17 : 0) | |
var lat = stadiums[game.location][1]; | |
return "translate(" + long + "," + lat + ")"; | |
}) | |
.attr("r", function(d){ | |
var game = games[d][week]; | |
// only animate specified team and its opponent | |
if ( team && d !== team && game.opponent !== team ) { | |
return 3; | |
} | |
return radius; | |
}); | |
teamLines.transition() | |
.duration(duration) | |
.ease("in-out") | |
.attr("x2", function(d){ | |
var game = games[d][week]; | |
if ( team && d !== team && game.opponent !== team ) { | |
return stadiums[d][0]; | |
} | |
// prevent overlap for circles of teams playing each other | |
return stadiums[game.location][0] - (game.type === "away" ? 17 : 0); | |
}) | |
.attr("y2", function(d){ | |
var game = games[d][week]; | |
if ( team && d !== team && game.opponent !== team ) { | |
return stadiums[d][1]; | |
} | |
return stadiums[games[d][week].location][1]; | |
}) | |
weekText.text(function(){ | |
if ( week === 0 ){ | |
return "Offseason"; | |
} | |
if ( currentTeam ) { | |
var game = games[currentTeam][week]; | |
if ( game.type === "bye"){ | |
return "Week " + week + ": Bye"; | |
} else { | |
var type = game.type === "home" ? "vs." : "@"; | |
var info = "Week " + week + ": " + type + " " + capitalize(game.opponent); | |
if ( game.location === "london" ) { | |
info += " in London"; | |
} | |
return info; | |
} | |
} else { | |
return "Week " + week; | |
} | |
}); | |
} | |
}); | |
function capitalize(str){ | |
return str.charAt(0).toUpperCase() + str.substr(1); | |
} |
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
{ | |
"raiders": { | |
"coords": { | |
"long": -122.2, | |
"lat": 37.9 | |
}, | |
"colors": { | |
"primary": "#C4C8CB", | |
"secondary": "#000000" | |
} | |
}, | |
"lions": { | |
"coords": { | |
"long": -83.03, | |
"lat": 42.33 | |
}, | |
"colors": { | |
"primary": "#C5C7CF", | |
"secondary": "#006DB0" | |
} | |
}, | |
"saints": { | |
"coords": { | |
"long": -90.07, | |
"lat": 29.95 | |
}, | |
"colors": { | |
"primary": "#D2B887", | |
"secondary": "#000000" | |
} | |
}, | |
"bills": { | |
"coords": { | |
"long": -78.78, | |
"lat": 42.77 | |
}, | |
"colors": { | |
"primary": "#00338D", | |
"secondary": "#C60C30" | |
} | |
}, | |
"buccaneers": { | |
"coords": { | |
"long": -82.5, | |
"lat": 27.97 | |
}, | |
"colors": { | |
"primary": "#D60A0B", | |
"secondary": "#89765F" | |
} | |
}, | |
"chargers": { | |
"coords": { | |
"long": -117.12, | |
"lat": 32.77 | |
}, | |
"colors": { | |
"primary": "#08214A", | |
"secondary": "#EEC607" | |
} | |
}, | |
"redskins": { | |
"coords": { | |
"long": -76.85, | |
"lat": 38.4 | |
}, | |
"colors": { | |
"primary": "#773141", | |
"secondary": "#FFB612" | |
} | |
}, | |
"broncos": { | |
"coords": { | |
"long": -105.02, | |
"lat": 39.73 | |
}, | |
"colors": { | |
"primary": "#FB4F14", | |
"secondary": "#002244" | |
} | |
}, | |
"steelers": { | |
"coords": { | |
"long": -80.0, | |
"lat": 40.43 | |
}, | |
"colors": { | |
"primary": "#000000", | |
"secondary": "#F2C800" | |
} | |
}, | |
"patriots": { | |
"coords": { | |
"long": -71.25, | |
"lat": 42.08 | |
}, | |
"colors": { | |
"primary": "#0D254C", | |
"secondary": "#C80815" | |
} | |
}, | |
"dolphins": { | |
"coords": { | |
"long": -80.23, | |
"lat": 25.95 | |
}, | |
"colors": { | |
"primary": "#008D97", | |
"secondary": "#F5811F" | |
} | |
}, | |
"falcons": { | |
"coords": { | |
"long": -84.4, | |
"lat": 33.75 | |
}, | |
"colors": { | |
"primary": "#BD0D18", | |
"secondary": "#000000" | |
} | |
}, | |
"cowboys": { | |
"coords": { | |
"long": -97.08, | |
"lat": 32.73 | |
}, | |
"colors": { | |
"primary": "#002244", | |
"secondary": "#8C8B8A" | |
} | |
}, | |
"packers": { | |
"coords": { | |
"long": -88.05, | |
"lat": 44.5 | |
}, | |
"colors": { | |
"primary": "#213D30", | |
"secondary": "#FFCC00" | |
} | |
}, | |
"jaguars": { | |
"coords": { | |
"long": -81.63, | |
"lat": 30.32 | |
}, | |
"colors": { | |
"primary": "#000000", | |
"secondary": "#D0B239" | |
} | |
}, | |
"jets": { | |
"coords": { | |
"long": -74.07, | |
"lat": 41.5 | |
}, | |
"colors": { | |
"primary": "#FFFFFF", | |
"secondary": "#0C371D" | |
} | |
}, | |
"rams": { | |
"coords": { | |
"long": -90.19, | |
"lat": 38.62 | |
}, | |
"colors": { | |
"primary": "#13264B", | |
"secondary": "#C9AF74" | |
} | |
}, | |
"49ers": { | |
"coords": { | |
"long": -121.97, | |
"lat": 37.1 | |
}, | |
"colors": { | |
"primary": "#AF1E2C", | |
"secondary": "#E6BE8A" | |
} | |
}, | |
"eagles": { | |
"coords": { | |
"long": -75.17, | |
"lat": 39.9 | |
}, | |
"colors": { | |
"primary": "#003B48", | |
"secondary": "#000000" | |
} | |
}, | |
"bengals": { | |
"coords": { | |
"long": -84.5, | |
"lat": 39.08 | |
}, | |
"colors": { | |
"primary": "#000000", | |
"secondary": "#FB4F14" | |
} | |
}, | |
"vikings": { | |
"coords": { | |
"long": -93.22, | |
"lat": 44.97 | |
}, | |
"colors": { | |
"primary": "#4F2682", | |
"secondary": "#FFC52F" | |
} | |
}, | |
"panthers": { | |
"coords": { | |
"long": -80.85, | |
"lat": 35.22 | |
}, | |
"colors": { | |
"primary": "#000000", | |
"secondary": "#0088CE" | |
} | |
}, | |
"ravens": { | |
"coords": { | |
"long": -76.62, | |
"lat": 39.27 | |
}, | |
"colors": { | |
"primary": "#280353", | |
"secondary": "#000000" | |
} | |
}, | |
"texans": { | |
"coords": { | |
"long": -95.4, | |
"lat": 29.68 | |
}, | |
"colors": { | |
"primary": "#02253A", | |
"secondary": "#B31B34" | |
} | |
}, | |
"giants": { | |
"coords": { | |
"long": -74.07, | |
"lat": 40.7 | |
}, | |
"colors": { | |
"primary": "#192F6B", | |
"secondary": "#CA001A" | |
} | |
}, | |
"bears": { | |
"coords": { | |
"long": -87.62, | |
"lat": 41.85 | |
}, | |
"colors": { | |
"primary": "#03202F", | |
"secondary": "#DD4814" | |
} | |
}, | |
"browns": { | |
"coords": { | |
"long": -81.68, | |
"lat": 41.5 | |
}, | |
"colors": { | |
"primary": "#26201E", | |
"secondary": "#E34912" | |
} | |
}, | |
"colts": { | |
"coords": { | |
"long": -86.15, | |
"lat": 39.75 | |
}, | |
"colors": { | |
"primary": "#FFFFFF", | |
"secondary": "#003B7B" | |
} | |
}, | |
"seahawks": { | |
"coords": { | |
"long": -122.32, | |
"lat": 47.58 | |
}, | |
"colors": { | |
"primary": "#06192E", | |
"secondary": "#4EAE47" | |
} | |
}, | |
"chiefs": { | |
"coords": { | |
"long": -94.48, | |
"lat": 39.03 | |
}, | |
"colors": { | |
"primary": "#B20032", | |
"secondary": "#F2C800" | |
} | |
}, | |
"titans": { | |
"coords": { | |
"long": -86.77, | |
"lat": 36.15 | |
}, | |
"colors": { | |
"primary": "#648FCC", | |
"secondary": "#000080" | |
} | |
}, | |
"cardinals": { | |
"coords": { | |
"long": -112.25, | |
"lat": 33.52 | |
}, | |
"colors": { | |
"primary": "#870619", | |
"secondary": "#000000" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment