Skip to main content
Public

Share visualization

Loading preview…

群像

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

群像

0
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 description

A 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

Comments

Sign in to join the discussion.

MIT Licensed