Your Custom Text Here

 

Flight!

An interactive application to display which is the best airline to fly with when flying domestically in the United States.

 
Screen Shot 2019-01-06 at 11.46.50 PM.png

Team

James, Won, Leo

Duration

4 weeks (class project)

ToolS

Kaggle's Dataset, HTML&CSS, Javascript, React, and Firebase

MY Role

HTML&CSS and react framework, navigation bar, interactive bar chart, web responsive design, and styling


Final Product


Interactive Features

We started creating the framework of this app in HTML&CSS. We used static images as placeholders for the three interactive features. We then created three interactive features: airline delay time bar chart, airline information table and US airports map using javascript and open source libraries.

 
 

Before

After

Screen Shot 2018-12-17 at 4.02.56 PM.png
Screen Shot 2018-12-17 at 11.46.34 AM.png
map-demo.gif

Feature Breakdown

Feature One: Airline Delay Bar Chart

The airline delay chart displays the top 14 US airline’s average delay time. We used an open source library called Rechart to construct the interactive bar chart. Users can adjust the range of the airlines using the bar below.

We also considered making the interactive bar chart mobile friendly and responsive.


Feature Two: Airline Information Table

This table displays the top 14 US airline data including origin airport, destination airport, and departure delay and allows users to highlight their preferred airline.

To highlight user’s preferred airline, we learned that we could save user’s preferred airline as a state variable and used if/else statement to manipulate the row background.

 
 

Feature Three: Interactive Region Map

Lastly, we created an interactive map using Leaflet and OpenStreetMap. It displays airports data in the US and their direct flight information.

The size of the airport markers is determined by the amount of direct flights per day. Because the direct flight varies from 1 (smallest) to 253 (largest), we increase readability by using blue and red markers to differentiate the airports.

map-demo.gif
Screen Shot 2018-12-18 at 1.43.46 PM.png