Skip to main content
100%

A6: Sequential Bar Chart

✓ Published0🌍 Public
Rronnieferrufino4908@gmail.com
Last edited Mar 5, 2025
Created on Mar 5, 2025

This example shows the number of delayed flights for each US airport, with bars colored on a blue sequential scale to highlight the magnitude of delays. A vertical bar chart plots airport codes on the x-axis and delayed flight counts on the y-axis, with higher values rendered in darker blues. The visualization is built with D3 v6, using `d3.scaleBand` for the categorical axis, `d3.scaleLinear` for the numeric range, and `d3.scaleSequential` with `d3.interpolateBlues` for color encoding. Data is loaded from a CSV file via `d3.csv`, and a color legend is added using the `d3-legend` library with threshold labels.

AI-generated description
MIT Licensed

Similar vizzes