GithubHelp home page GithubHelp logo

imranansari / game-of-thrones Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeffreylancaster/game-of-thrones

0.0 2.0 0.0 6.53 MB

Game of Thrones Datasets and Visualizations

HTML 80.83% JavaScript 17.44% CSS 1.73%

game-of-thrones's Introduction

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": [ // just object if single value
                {
                  "action": "string",
                  "name": "string"
                }
              ],
              "sex": [
                "with": [ // just string if single value
                  "string"
                ],
                "when": "string",
                "type": "string"
              ],
              "married": {
                "to": "string",
                "when": "string",
                "type": "string",
                "consummated": true
              },
              "mannerOfDeath": "string",
              "killedBy": [ // just string if single value
                "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",
        ...
      ]
    },
    ...
  ]
}

game-of-thrones's People

Contributors

jeffreylancaster avatar

Watchers

Imran Ansari avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.