Game of Thrones Datasets and Visualizations
Clone or download
jeffreylancaster add new visualizations
still need to add to main index page
Latest commit 0bf0ae0 Jan 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bubble-character for loops to map/filter/reduce, remove jquery bug Dec 28, 2018
bubble-death add new visualizations Jan 17, 2019
character-arcs add new visualizations Jan 17, 2019
characters-per-scene for loops to map/filter/reduce, remove jquery bug Dec 28, 2018
costars-list refactor costars-list Dec 28, 2018
costars-matrix remove more for loops in costars-matrix Dec 28, 2018
data add new visualizations Jan 17, 2019
duration-character move from for loops to map/reduce/filter Dec 24, 2018
duration-per-location for loops to map/reduce/filter Dec 24, 2018
duration-per-season for loops to map/reduce/filter Dec 24, 2018
duration-per-sublocation for loops to map/reduce/filter Dec 24, 2018
duration-percent for loops to map/reduce/filter Dec 24, 2018
duration-treemap remove extra parameter Jan 9, 2019
force-directed flip scopeMain logic, refactor force-directed Dec 28, 2018
geography-locations update geography-locations Dec 18, 2018
img Initial Commit May 20, 2017
location-per-episode remove for loop, add map/reduce/filter, update select text Dec 26, 2018
m update index Dec 13, 2018
map modify styles, update house-select to group-select Jan 8, 2019
matrix flip scopeMain logic, refactor force-directed Dec 28, 2018
opening-locations-fixed remove for loop, add map/reduce/filter, update select text Dec 26, 2018
opening-locations-force remove for loop, add map/reduce/filter, update select text Dec 26, 2018
opening-seq-arcs refactoring Jan 14, 2019
opening-seq-matrix remove for loop, add map/reduce/filter, update select text Dec 26, 2018
region-percent for loops to map/filter/reduce Dec 26, 2018
relations-circle update characters, for loop to map/reduce/filter Dec 26, 2018
relations-force-sex add new visualizations Jan 17, 2019
relations-force refactoring Dec 28, 2018
scenes-character-force clean up all files Dec 18, 2018
scenes-character refactoring Jan 14, 2019
scenes-location remove for loops, add map/filter/reduce Dec 26, 2018
scenes-special add new visualizations Jan 17, 2019
scenes-sublocation remove for loops, add map/filter/reduce Dec 26, 2018
scenes-weapons add new visualizations Jan 17, 2019
.gitignore update episodes, remove unused files Jan 14, 2019
README.md Update README.md Jan 14, 2019
index.html clean up all files Dec 18, 2018
style.css update geography-locations Dec 18, 2018

README.md

Game of Thrones Datasets and Visualizations

I've written a bit about this project on Medium and the narrative chart visualization that kicked this off is here: https://jeffreylancaster.github.io/game-of-thrones/map/.

Visualizations

Narrative Chart

A visualization of when each character is on-screen throughout the show, where they are, with whom they are, when they die, and more

View | <>

Costars List

A list of other films in which Game of Thrones costars, well, costar

View | <>

Costars Matrix

A matrix visualization of frequency of other films in which Game of Thrones costars, well, costar

View | <>

Supercut Duration

A visualization of how long each character has been on-screen throughout the show

View | <>

Character Time Percentage Per Season

A visualization of how much of a character's time on screen is spent in each season

View | <>

Force-Directed On-Screen Co-Occurrence (work in progress)

A force-directed visualization of characters on-screen together throughout the show

View | <>

Character Co-Occurrence Matrix

A matrix visualization of how often characters are on screen together

View | <>

Travelling Characters

A visualization of the various locations characters visit and how much of their time they spend there

View | <>

JavaScript

js/process.js

Builds keyValues.json from episodes.json by adding y-values and additional location-specific information.

js/map.js

Builds the visualization using d3.js.

HTML

process.html

Outputs the data for keyValues.json.

map.html

Outputs the Game of Thrones narrative chart.

Data

data/episodes.json

{
  "episodes": [
    {
      "seasonNum": integer,
      "episodeNum": integer,
      "episodeTitle": "string", // from imdb
      "episodeLink": "string", // endpoint: www.imdb.com
      "episodeAirDate": "string", // from imdb
      "episodeDescription": "string", // from imdb
      "openingSequenceLocations": [
        "string",
        ...
      ],
      "scenes":[
        {
          "sceneStart": "string",
          "sceneEnd": "string",
          "location": "string",
          "subLocation": "string",
          "altLocation": "string",
          "flashback": true,
          "greensight": true,
          "warg": true,
          "characters": [
            {
              "name": "string",
              "title": "Hand | Khal | Khaleesi | King",
              "alive": false,
              "born": false,
              "weapon": [
                {
                  "action": "string",
                  "name": "string"
                }
              ],
              "sex": {
                "with": [
                  "string"
                ],
                "when": "string",
                "type": "string"
              },
              "married": {
                "to": "string",
                "when": "string",
                "type": "string",
                "consummated": true
              },
              "mannerOfDeath": "string",
              "killedBy": [
                "string"
              ]
            },
            ...
          ]
        },
        ...
      ]
    },
    ...
  ]
}

data/characters.json

{
  "characters":[
    {
      "characterName": "string",
      "characterLink": "string", // endpoint: www.imdb.com
      "characterImageThumb": "string",
      "characterImageFull": "string",
      "actorName": "string", // OR actors: []
      "actors": [
        {
          "actorName":"Richard Dormer",
          "actorLink":"/name/nm0233807/",
          "seasonsActive":[
            integer,
            ...
          ]
        },
        ...
     ],
      "actorLink": "string", // endpoint: www.imdb.com
      "houseName": [
        "string", // just string if single value
        ...
      ],
      "nickname": "string",
      "royal": true,
      "kingsguard": true,
      "parents": [
        "string",
        ...
      ],
      "parentOf": [
        "string",
        ...
      ],
      "guardianOf": [
        "string",
        ...
      ],
      "guardedBy": [
        "string",
        ...
      ],
      "siblings": [
        "string",
        ...
      ],
      "marriedEngaged": [
        "string",
        ...
      ],
      "allies":[
        "string",
        ...
      ],
      "abducted":[
        "string",
        ...
      ],
      "killed": [
        "string", 
        ...
      ],
      "killedBy": [
        "string",
        ...
      ],
      "serves": [
        "string",
        ...
      ]
      "servedBy": [
        "string",
        ...
      ]
    },
    ...
  ]
}

data/characters-groups.json

{
  "group": [
    {
      "name": "string",
      "characters": [
        "string",
        ...
      ]
    },
    ...
  ]
}

data/characters-include.json

{
  "include":[
    {
      "name": "string",
      "include": true
    },
    ...
  ]
}

data/locations.json

{
  "regions":[
    {
      "location": "string",
      "subLocation": [
        "string",
        ...
      ]
    },
    ...
  ]
}