Skip to main content
100%

Iris Scatter Plot

✓ Published0🌍 Public
Wwinniepooh520
Last edited Oct 1, 2020
Created on Oct 1, 2020
Forked from Iris Scatter Plot

This scatter plot displays the classic Iris dataset, with each point representing a flower and colored by its species (setosa, versicolor, or virginica). The visualization uses D3 v5 to render an SVG, allowing users to dynamically select which measurements (sepal or petal length/width) appear on the x- and y-axes via dropdown menus. The code builds linear scales with `d3.scaleLinear`, generates axes with `d3.axisBottom` and `d3.axisLeft`, and adds a color legend using `d3.legendColor`. Circles are styled with an ordinal color scale, and grid lines are rendered through tick sizes.

AI-generated description

Iris scatter plot with each class of iris being colored accordingly. Student ID:0616222

MIT Licensed

Similar vizzes