Submit of Iris Scattering Plot
✓ Published0🌍 Public
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 descriptionA scatter plot of the Iris Dataset with a color legend.
See also:
MIT Licensed