Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Data Visualization Homework 8: Sankey Diagram

Public visualization

Viewing a saved revision (read-only)

72e917965c124b08815559d7bbfbc5a3

Data Visualization Homework 8: Sankey Diagram

1 star2🌍 Public
Dderrick373519@gmail.com
Last edited Nov 12, 2023
Created on Nov 9, 2023

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 description