🌍 Public
Viewing a saved revision (read-only)
0f1a57b9fef24dafa7394b1b50024ce5
Data Visualization Homework 8: Sankey Diagram
A Sankey diagram of car evaluation data visualizes the flow of car attributes—buying price, maintenance cost, doors, persons, luggage boot, and safety—toward an acceptability outcome. The diagram renders nodes and curved links as SVG elements using D3.js v5, with the custom `d3.sankey` layout computing node positions and link widths. Draggable nodes allow interactive repositioning, triggering a relayout that updates link paths via `d3.sankeyLinkHorizontal`. Data is loaded from a CSV text file using `d3.csvParse`.
AI-generated description