Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Submit of Iris Scattering Plot

Public visualization

Viewing a saved revision (read-only)

53db9289537e48c2b1b66dd95f8fed8d

Submit of Iris Scattering Plot

0 stars0🌍 Public
Ffloraho401
Last edited Sep 21, 2023
Created on Sep 21, 2023
Forked from Iris Scatter Plot

This visualization displays the classic Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. Each of the three species—setosa, versicolor, and virginica—receives a distinct color, with a custom color legend positioned on the right. The code uses D3 v7’s `scaleLinear` for axes, `scaleOrdinal` for colors, and `selection.join` to manage circles and axis elements. The legend is built manually with SVG circles and text, while data is loaded remotely and parsed via `csvParse`.

AI-generated description

A scatter plot of the Iris Dataset with a color legend.

See also: