Data Visualization Homework 8: Sankey Diagram
✓ Published0🌍 Public
Dderrick373519@gmail.com
Last edited Nov 9, 2023
Created on Nov 7, 2023
Forked from Data Visualization Homework 1: Scatter Plots
This visualization is a Sankey diagram that depicts the flow of car attributes—buying price, maintenance cost, number of doors, person capacity, luggage boot size, and safety—toward a final evaluation of acceptability. The diagram uses nodes for each attribute-value combination and weighted links to show the sequential relationships between them. The code builds the graph by parsing a CSV file and then uses a custom `d3.sankey()` layout algorithm to position nodes and links, rendering the final output as SVG. Interactive dropdown menus allow the user to select which columns to compare.
AI-generated descriptionMIT Licensed