Skip to main content
100%

Sankey diagram

✓ Published0🌍 Public
Hhi4u2qzy@gmail.com
Last edited Nov 9, 2023
Created on Nov 8, 2023

This Sankey diagram visualizes the flow of car attributes from the UCI Auto MPG dataset, showing how combinations of buying price, maintenance cost, doors, persons, luggage boot, and safety lead to overall acceptability ratings. Users can reorder the attribute sequence using a dropdown menu, which rearranges the flow columns accordingly. The implementation uses the `d3-sankey` extension library on top of D3 v6, rendering nodes as rectangles and links as horizontal paths within an SVG canvas. Node and link colors are assigned via `d3.scaleOrdinal`, and nodes are draggable through D3's drag behavior.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set. The user can select which columns map to X and Y using dropdown menus.

MIT Licensed

Similar vizzes