Viewing a saved revision (read-only)
8402b029a18245beac74f3a5363c697d
Data Visualization Homework 8: Sankey Diagram
A Sankey diagram visualizes the Car Evaluation dataset, showing how combinations of car attributes (buying price, maintenance, doors, persons, luggage boot, safety) flow to final acceptability ratings. The diagram uses color-coded nodes grouped by attribute type, with link thickness representing the count of cars with each attribute combination. The code uses d3.sankey for layout, d3.drag for interactive node repositioning, and d3.csv for data loading. The visualization renders as SVG, calculating node positions and link paths through the sankey.layout(32) function.
AI-generated descriptionreference sankey.js code: https://vizhub.com/nitanagdeote/08c92db1cae14eca9488acaeefca3d18?edit=files&file=sankey.js