Skip to main content
Public

Share visualization

Loading preview…

Bar Chart for USA Flights Delay _ 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

Bar Chart for USA Flights Delay _ React & D3

0
XXinting Yao
Last edited Sep 26, 2019
Created on Sep 18, 2019

This interactive bar chart visualizes the average departure delay for USA flights by month. Each horizontal purple bar represents a month, with its length proportionally reflecting the mean delay in minutes. The visualization is built using React and D3.js (with `scaleBand` for the y-axis and `scaleLinear` for the x-axis), rendering as an SVG. Data is loaded from a remote CSV file, pre-processed to calculate monthly averages, and displayed with axis ticks and labels.

AI-generated description

A Bar chart for USA Flights on-time Performance Analysis using the React & D3.

This visualization is an analysis about USA flights on-time performance. Each bar represents one month.

Experience :

1> While making this visualization, data pre-processing took me 2 days to get the final result, which is the USA flights delay condition by month. I also got the result by date/day/week and will play it around later.

2> Drawing this bar chart using React & D3 was much more difficult than using vega-lite-api, but it was also more interesting when I created all elements one by one by myself.

One idea I got from these two weeks' assignment was, when I want to realize a visualization in the future, I could use vega-lite-api first to try out all the ideas, and after choosing the best one I can use React & D3 to realize it. However I am not sure if my understand is right or not lol.

Comments

Sign in to join the discussion.

MIT Licensed