/flights

Visualizations of U.S. flight data

Primary LanguageJavaScriptMIT LicenseMIT

Flights

A visual representation of U.S. domestic flight delays across the year 2008. The scripts should allow you to easily swap out the data for a different year.

screenshot of delays

Live Demo.

Setup

Automatic

Use the fancy setup script!

$ cd data/
$ ./setup.sh

Manual

Grab the data from stat-computing.org. Once you have the data run delays.py to calculate and condense the data. You will need a file server running to see the site. An example may look like this.

# Data saved to data/2008.csv
$ cd data/
$ python3 delays.py
$ cd ..
$ python3 -m http.server

You will also need to grab the airport-codes.csv and us.json and place them in the data/ directory. Once your data is processed, you will only need a simple file server for future uses.

License

MIT

Flight data originally from U.S. Department of Transportation and retrieved from stat-computing.org.
Airport location data from openflights.org.
US map data from mbostock.