Skip to main content
100%

HW2-2

✓ Published0🌍 Public
Aanna960073@gmail.com
Last edited Sep 19, 2024
Created on Sep 19, 2024

This interactive parallel coordinate plot visualizes the Iris dataset, displaying four measurements—sepal length, sepal width, petal length, and petal width—as connected polylines for 149 samples, colored by species (red, green, blue). Users can drag any axis horizontally to reorder dimensions, which updates the line paths accordingly. Built with D3 v4, it uses `d3.scaleOrdinal` for color mapping, `d3.scalePoint` for axis positioning, `d3.axisLeft` for rendering ticks, and `d3.drag` for interactive reordering, with hover highlighting that dims non-selected lines via `transition()` styling.

AI-generated description
MIT Licensed

Similar vizzes