Skip to main content
Public

Share visualization

Loading preview…

Top 15 Airports w.r.t. Origin using React+D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Top 15 Airports w.r.t. Origin using React+D3

0
JJosvin John
Last edited Oct 7, 2020
Created on Sep 30, 2020

This visualization displays the top 15 airports by origin, ranked by flight count in descending order, with each airport color-coded and labeled by IATA code. The chart aggregates flight delay data from a CSV source using D3’s `csv` loader, then applies Vega-Lite transforms for filtering, grouping, counting, and ranking before rendering with React. Customized D3 axes are visible, and the visualization updates dynamically to fit the window size. The code integrates React, D3 v5, Vega-Lite, and Vega-Tooltip for interactive hover details.

AI-generated description

The data shown here comes from Flight Delay Analysis Dataset

This bar chart using React & D3 shows the Top 15 Airports with respect to Origin sorted by the number of flights from each airport in descending order.

Each Airport is denoted by a different color.

The Airports are represented by their IATA Codes.

This chart also demonstrates customization of D3 axes.

Comments

Sign in to join the discussion.

MIT Licensed