Interactive Pie Chart showing percentage of flights delayed w.r.t Departure for each airline
This interactive pie chart visualizes the percentage of flights delayed by departure for each airline, with color saturation indicating the proportion of delays each carrier contributes to the total. Hovering over a slice reveals the exact percentage of total delays via a tooltip. The visualization uses D3 v5, loading CSV data from a Flight Delay Analysis Dataset on GitHub. The chart is rendered with SVG paths using d3.pie and d3.arc, while an ordinal color scale maps airlines to a blue palette. The code also uses d3.select and d3.event for interactive tooltip positioning.
AI-generated descriptionThe data shown here comes from Flight Delay Analysis Dataset
This chart meant to show the "Percentage of flights delayed w.r.t Departure for each airline". The color saturation denotes the percentage of delayed flights that belong to each airline. The tooltip shows the percentage delay w.r.t total delay of all flights, when you hover over it.
The questions that can be asked from this chart are:
- Which airline had the maximum delayed flights? Ans = MQ
- What percentage of flights were delayed by the airline MQ? Ans = 39.1%
- How many airlines have a delay percent between 10% and 20%? Also, what are those flights? Ans = 3, AA, OO, EV