Skip to content

Instantly share code, notes, and snippets.

@csaybar
Created January 21, 2022 08:36
Show Gist options
  • Save csaybar/dfb70ef8d9eff1bd06928744d69a9633 to your computer and use it in GitHub Desktop.
Save csaybar/dfb70ef8d9eff1bd06928744d69a9633 to your computer and use it in GitHub Desktop.
DEP ARR NVOLS PAX_FS FSC year month DEP_LAT DEP_LONG ARR_LAT ARR_LONG date DEP_DEPARTEMENT ARR_DEPARTEMENT
LFBA LFPO 67 1407 CC 2011 1 44.17 0.59 48.72 2.38 2011-01-01 01:01:00 47 91
LFBD LFLL 194 18100 CC 2011 1 44.83 -0.72 45.73 5.08 2011-01-01 01:01:00 33 69
LFBD LFML 95 5577 CC 2011 1 44.83 -0.72 43.44 5.22 2011-01-01 01:01:00 33 13
LFBD LFMN 56 3023 CC 2011 1 44.83 -0.72 43.67 7.22 2011-01-01 01:01:00 33 6
LFBD LFPG 208 23427 CC 2011 1 44.83 -0.72 49.01 2.55 2011-01-01 01:01:00 33 93
LFBD LFPO 332 38477 CC 2011 1 44.83 -0.72 48.72 2.38 2011-01-01 01:01:00 33 91
LFBD LFQQ 67 2517 CC 2011 1 44.83 -0.72 50.56 3.09 2011-01-01 01:01:00 33 59
LFBD LFRS 65 1753 CC 2011 1 44.83 -0.72 47.16 -1.61 2011-01-01 01:01:00 33 44
LFBD LFSB 15 1699 CC 2011 1 44.83 -0.72 47.59 7.53 2011-01-01 01:01:00 33 68
@csaybar
Copy link
Author

csaybar commented Jan 21, 2022

Figure 04 code:

{
  "description": "",
  "data": {
    "values": [
      {
        "DEP": "LFPO",
        "n": 2437
      },
      {
        "DEP": "LFLL",
        "n": 1885
      },
      {
        "DEP": "LFML",
        "n": 1408
      },
      {
        "DEP": "LFMN",
        "n": 1394
      },
      {
        "DEP": "LFPG",
        "n": 1368
      },
      {
        "DEP": "LFRS",
        "n": 1213
      },
      {
        "DEP": "LFBD",
        "n": 1077
      },
      {
        "DEP": "LFBO",
        "n": 1062
      },
      {
        "DEP": "LFST",
        "n": 867
      },
      {
        "DEP": "LFKJ",
        "n": 812
      },
      {
        "DEP": "LFQQ",
        "n": 765
      },
      {
        "DEP": "LFSB",
        "n": 696
      },
      {
        "DEP": "LFKB",
        "n": 684
      },
      {
        "DEP": "LFRB",
        "n": 639
      },
      {
        "DEP": "LFMT",
        "n": 497
      },
      {
        "DEP": "LFRN",
        "n": 478
      },
      {
        "DEP": "LFKF",
        "n": 471
      },
      {
        "DEP": "LFBZ",
        "n": 373
      },
      {
        "DEP": "LFKC",
        "n": 312
      },
      {
        "DEP": "LFLC",
        "n": 285
      },
      {
        "DEP": "LFBP",
        "n": 268
      },
      {
        "DEP": "LFTH",
        "n": 191
      },
      {
        "DEP": "LFJL",
        "n": 185
      },
      {
        "DEP": "LFRK",
        "n": 161
      },
      {
        "DEP": "LFBI",
        "n": 160
      },
      {
        "DEP": "LFOB",
        "n": 146
      },
      {
        "DEP": "LFRH",
        "n": 145
      },
      {
        "DEP": "LFMP",
        "n": 117
      },
      {
        "DEP": "LFBL",
        "n": 113
      },
      {
        "DEP": "LFBH",
        "n": 88
      },
      {
        "DEP": "LFBT",
        "n": 87
      },
      {
        "DEP": "LFCR",
        "n": 87
      },
      {
        "DEP": "LFRQ",
        "n": 87
      },
      {
        "DEP": "LFSL",
        "n": 84
      },
      {
        "DEP": "LFBA",
        "n": 81
      },
      {
        "DEP": "LFLW",
        "n": 81
      },
      {
        "DEP": "LFRO",
        "n": 81
      },
      {
        "DEP": "LFCK",
        "n": 80
      },
      {
        "DEP": "LFMU",
        "n": 80
      },
      {
        "DEP": "LFRZ",
        "n": 76
      },
      {
        "DEP": "LFOT",
        "n": 59
      },
      {
        "DEP": "LFOK",
        "n": 51
      },
      {
        "DEP": "LFSD",
        "n": 38
      },
      {
        "DEP": "LFOH",
        "n": 19
      },
      {
        "DEP": "LFLP",
        "n": 18
      },
      {
        "DEP": "LFRG",
        "n": 17
      },
      {
        "DEP": "LFMK",
        "n": 11
      },
      {
        "DEP": "LFLX",
        "n": 7
      },
      {
        "DEP": "LFLB",
        "n": 6
      },
      {
        "DEP": "LF96",
        "n": 4
      },
      {
        "DEP": "LFOP",
        "n": 1
      },
      {
        "DEP": "LFPB",
        "n": 1
      },
      {
        "DEP": "LFGJ",
        "n": 1
      }
    ]
  },
  "mark": "bar",
  "encoding": {
    "x": {
      "field": "DEP",
      "type": "ordinal"
    },
    "y": {
      "field": "n",
      "type": "quantitative"
    },
    "order": {
      "field": "n",
      "type": "quantitative",
      "sort": "descending"
    }
  },
  "config": {
    "cell": {
      "width": 400,
      "height": 200
    }
  },
  "embed": {
    "renderer": "svg",
    "actions": {
      "export": false,
      "source": false,
      "editor": false
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment