Average Delay Time and Delay Reason for various carriers
A stacked bar chart displays the average departure delay in minutes for each aircraft carrier, with bar segments colored by cancellation reason. Hovering over a segment reveals a tooltip with the exact delay reason and average delay time. Built with Vega-Lite and D3.js, the visualization aggregates the flight delay dataset by carrier and cancellation reason using the `groupby` and `average` transforms. The chart is rendered via the Vega-Lite API, with data loaded asynchronously from a CSV file using D3's `csv` function.
AI-generated descriptionThe data shown here comes from Flight Delay Analysis Dataset
This chart meant to show the "Average Delay Time and Delay Reason for various airline carriers". The color denotes the delay reason. The Delay Reason and the Avg Delay Time for each airline are shown on the tooltip as well when you hover over it.
The questions that can be asked from this chart are:
- Which Aircraft Carrier has the highest average departure delay? Ans = B6
- Which Aircraft Carrier has the lowest average departure delay? Ans = HA
- For the B6 Carrier, what was the major cause of delay? Ans = Carrier Delay
- Which type of Delay caused the Max Avg Departure Delay?How much was the delay and for which aircraft was it? - Ans = National Air System Delay - 1257.14 mins - NK
- For each Aircraft Carrier, what are the delays they can reduce so as to increase on-time performance?
Overall my experience with this visualization was insightful. It was able to answer the questions/tasks well and it was easy for me to derive insights from this graph.