Bar Plot with React & D3 for Airline Rating Data #2
✓ Published1🌍 Public
Aadamsnothere@gmail.com
Last edited Oct 1, 2025
Created on Sep 30, 2025
Forked from Bar Plot with React & D3 for Airline Rating Data
This visualization displays average airline ratings from a CSV dataset using a horizontal bar chart built with React and D3 v7. The chart sorts airlines by overall rating with radio-button controls for ascending/descending order and a slider to adjust the number of airlines shown. Bars are colored on a red-to-green gradient using `d3.scaleLinear`, while `d3.scaleBand` positions the categorical axis. The height dynamically expands to accommodate more airlines, with names truncated to 16 characters.
AI-generated descriptionMIT Licensed