Skip to main content
100%

Submit of Iris Scattering Plot

✓ Published0🌍 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:

MIT Licensed

Similar vizzes