Skip to main content
100%

Radial

✓ Published0🌍 Public
GGuillermo Pereyra Lucero
Last edited Mar 29, 2024
Created on Mar 29, 2024

A radial chart displays average flight delays for US airlines across months, with two overlaid paths comparing departure and arrival delays. The visualization uses React with D3 v5’s `lineRadial` and `curveLinearClosed` to create circular lines, while `scaleTime` maps dates to angles and `scaleLinear` maps delay values to radial distances. An ordinal color scale distinguishes the two delay types, and a custom SVG legend explains the color encoding. Data comes from a CSV file of airline performance metrics loaded via `d3.csv`.

AI-generated description

A radial chart of USA airlines on-time performance.

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

Things doing:

  • Adding axes (tick marks and labels) for angle: using pointRadial
  • Making the colorLegend interactive

Things to do:

  • Adding axes (tick marks and labels) for radius
  • Choosing a range for the angle scale that represents some periodic amount of time, like years, months, or weeks.
MIT Licensed

Similar vizzes