Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HW8 - Snakey diagram

Public visualization

Viewing a saved revision (read-only)

3fed544417384671b07d47284cae2b84

HW8 - Snakey diagram

0 stars1🌍 Public
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