Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HW2_basis2

Public visualization

Viewing a saved revision (read-only)

b6070d5be6c94bc2857ae8c08fb48542

HW2_basis2

0 stars1🌍 Public
SSandyWu7179290504
Last edited Oct 20, 2022
Created on Oct 20, 2022

This visualization displays the Iris dataset as a parallel coordinate plot, with four axes representing sepal length, sepal width, petal length, and petal width. Each flower is drawn as a polyline, colored by species (setosa, versicolor, virginica) using a custom color mapping, with a legend indicating the classes. The code uses D3 v5’s `scalePoint` and `scaleLinear` for positioning, `line()` for generating paths, and `axisLeft` for rendering axes. The data is loaded via `d3.csv` from a GitHub-hosted CSV file, and the plot is rendered as SVG with semi-transparent strokes.

AI-generated description

A scatter plot of The Iris Dataset.