群像
✓ Published0🌍 Public
JJiaMing
Last edited Apr 12, 2020
Created on Apr 12, 2020
A radial chart visualizes on-time performance for the five busiest US airports across the year, with each airport drawn as a distinct colored closed curve. Angular position encodes date while radius represents average departure delay in minutes. Hovering over the interactive color legend highlights the corresponding airport’s loop and fades the others. Built with React and D3 v5, it uses `d3.scaleTime`, `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.nest`, `d3.pointRadial`, and `d3.curveLinearClosed` to render SVG paths from CSV data on flight delays.
AI-generated descriptionA radial chart of USA airlines on-time performance.
Things to do:
- Add axes (tick marks and labels) for radius
- Choose a different projection for USA map to add Alaska and Hawaii
Things doing:
- Adding axes (tick marks and labels) for angle: using pointRadial
Things have done:
- Used a cleaner way to transform the chart to center
- Learned how to close the line: using d3.curveLinearClosed
- Used a cleaner way to choose the range for radiusScale: innerRadius, outerRadius, angleAxisOffset
- Added a colorLegend
- Made the colorLegend interactive
MIT Licensed