StealThis .dev
Pages Medium

Airline — Load Factor Report

A status-forward airline network revenue dashboard that reports load factor, RASK, yield and passenger revenue across long-haul routes. Headline KPIs carry trend pills and inline sparklines, a horizontal bar chart ranks routes by seat utilisation, and a revenue trend area chart redraws as you toggle between seven-day, thirty-day, quarter-to-date and year-to-date timeframes. A sortable route table, animated cabin-mix donut, route drill-down drawer and one-click CSV export round out the report.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Load Factor Report

A revenue-management report for the fictional carrier Skyward Atlantic, built in the clean aviation-blue design system. Four headline KPIs — load factor, RASK, yield and passenger revenue — sit across the top with up/down trend pills and inline SVG sparklines. Below them a horizontal bar chart ranks every long-haul route by seat utilisation (colour-coded green ≥85%, amber 70–85%, red below 70%), beside a filled revenue trend chart.

The timeframe segmented control (7D / 30D / QTD / YTD) is the spine of the report: switching it recomputes all KPIs, redraws the bars, repaints the revenue trend line and resorts the route table, with a toast confirming the change. Every route is interactive — click a bar or a table row to slide open a drill-down drawer showing load factor, revenue, RASK, status, the cabin revenue split and scheduled rotations for that city pair.

A cabin-mix donut aggregates revenue share by Economy, Premium, Business and First, with hover highlighting and a live centre readout, and the Export CSV button downloads the current timeframe’s ranked route table. Everything is vanilla JS with no dependencies, tabular figures throughout, keyboard-usable rows and drawer, and a layout that collapses cleanly down to ~360px.

Illustrative UI only — fictional airline, not a real booking or flight system.