Best Data Viz
Ranking

Alluvial Chart

Visualizes categorical flows across multiple stages using curved bands whose width encodes quantity, revealing how groups merge and split.

Student Major Migration

How a freshman cohort changes majors across four years

View data (17 rows)
Chart data table: Student Major Migration
Year 1Year 2Year 3Year 4Count
EngineeringEngineeringEngineeringEngineering320
EngineeringEngineeringBusinessBusiness40
EngineeringCSCSCS60
EngineeringUndeclaredBusinessBusiness30
CSCSCSCS260
CSCSCSData Science50
CSEngineeringEngineeringEngineering25
BusinessBusinessBusinessBusiness200
BusinessBusinessEconomicsEconomics45
BusinessEconomicsEconomicsEconomics30
BiologyBiologyBiologyBiology150
BiologyBiologyPre-MedPre-Med60
BiologyPsychologyPsychologyPsychology25
UndeclaredBusinessBusinessBusiness80
UndeclaredCSCSCS55
UndeclaredPsychologyPsychologyPsychology40
UndeclaredBiologyBiologyBiology25
Make an alluvial chart with your data

Use an alluvial chart when…

  • Showing how categorical membership changes across sequential stages
  • Tracking voter migration between parties across elections
  • Visualizing how students move through academic programs over time

Avoid when…

  • When you have only two stages (a Sankey or slope chart is clearer)
  • When there are many small categories that create visual noise
  • When precise quantitative comparisons are needed

Data it needs

PropertyValue
Min Rows8
Min Columns3
Column Types
stringstringnumber
NotesRequires source category, target category, and a flow weight for each stage transition.

Visual anatomy

Marks
ribbonrectangle
Channels
width (quantity)color (category)vertical position (stack order)
Axes
horizontal: stages/columns

Guiding principles

Consider instead

Common mistakes

  • Using too many categories, making the ribbon structure unreadable

  • Not ordering categories consistently to minimize crossings

  • Forgetting to label the stages/columns

History

Alluvial diagrams were introduced by Martin Rosvall and Carl Bergstrom in 2010 to visualize changes in network community structure over time. The name comes from the resemblance to alluvial fans in geology where rivers split and merge.

Accessibility notes

Screen readers should announce each flow band with its source, target, and volume. Provide a structured table of transitions. Use distinct colors with sufficient contrast for adjacent ribbons.

Related reading

Got data? Let's see what works.

Drop your CSV. You'll get an Alluvial Chart plus four alternatives - ranked by which one actually fits your data best.