Skip to main content
100%

Bar Chart for USA Flights Delay _ vega-lite-api

✓ Published0🌍 Public
XXinting Yao
Last edited Sep 26, 2019
Created on Sep 17, 2019

The bar chart visualizes average departure delays for USA flights by month, using a dark-themed, minimal design with tooltips for exact delay values. It is built with the vega-lite-api, which registers Vega, Vega-Lite, and a tooltip handler to render an interactive SVG chart. Data is pre-processed into a CSV file and loaded asynchronously via d3.csv, then bound to the chart’s x-axis for months and y-axis for delay minutes. The chart automatically fits the window size and applies custom axis and label styling from a separate config module.

AI-generated description

A Bar chart for USA Flights on-time Performance Analysis using the vega-lite-api.

This visualization is an analysis about USA flights on-time performance.

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.

MIT Licensed

Similar vizzes