Data Visualization Homework 8: Sankey Diagram
✓ Published2🌍 Public
Dderrick373519@gmail.com
Last edited Nov 12, 2023
Created on Nov 9, 2023
Forked from Data Visualization Homework 1: Scatter Plots
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
MIT Licensed