🌍 Public
Viewing a saved revision (read-only)
bccaf62c7d184e0c9c6b22cc23fcefbf
Fork of Data Visualization Homework 8: Sankey Diagram
Jjerry70938@gmail.com
Last edited Oct 29, 2024
Created on Oct 28, 2024
Forked from Data Visualization Homework 8: Sankey
Diagram
This Sankey diagram visualizes car evaluation results from the car.data dataset, showing how attributes like buying price, maintenance cost, doors, persons, luggage boot, and safety flow into final acceptability ratings. The diagram uses d3.sankey() to compute node positions and link paths, with nodes colored by attribute category and rendered as SVG rectangles. Links are grouped by source-target pairs and their thickness represents the count of cars with that combination. Interactive dragging of nodes is enabled through d3.drag(), allowing users to rearrange the visualization dynamically.
AI-generated description