Skip to main content
100%

Parallel Coordinate Plots

✓ Published0🌍 Public
Hhuangweijie0310102@gmail.com
Last edited Oct 1, 2023
Created on Sep 30, 2023
Forked from Scatter Plot

This parallel coordinate plot visualizes the Iris flower dataset, displaying four morphological attributes (sepal length, sepal width, petal length, and petal width) for three species of iris. Each sample is represented as a polyline connecting its attribute values across parallel axes, with lines colored by species (setosa, versicolor, and virginica) using a D3 ordinal color scale. The visualization uses D3 v7 with an SVG rendering approach, employing native `d3.axisLeft` and `d3.line` APIs for constructing the axes and polylines. An interactive dropdown menu allows users to reorder the four axes, triggering a redraw of both the vertical axes and the connecting lines via a custom `redrawParallelCoordinates` function. The data is loaded from an external CSV file using `d3.csv`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes