🌍 Public
Viewing a saved revision (read-only)
bdf15bc0800b43f896eae1e850002ba4
HW8 - Snakey diagram
Ttunajaw
Last edited Nov 10, 2023
Created on Nov 10, 2023
The visualization is a Sankey diagram built with D3.js that traces the flow of categorical car attributes—buying price, maintenance cost, doors, persons, luggage boot, and safety—into final acceptance classes (unacc, acc, good, vgood). It loads the raw car.data file via `fetch`, parses each comma-separated line, and aggregates frequencies into nodes and links. The diagram uses `d3.sankey()` for layout and `d3.behavior.drag` for interactive node repositioning, with SVG paths representing the weighted flows.
AI-generated description