🌍 Public
Viewing a saved revision (read-only)
c3cf8be3e46f41f98e203da6d8060f78
Iris Dataset Scatter Plots with Color Legend
This visualization displays the Iris dataset as a scatter plot of petal length versus petal width, with each of the three flower species (setosa, versicolor, virginica) distinguished by a distinct color from a D3 ordinal scale. Using D3 v7, the code loads CSV data, scales the x and y axes with `scaleLinear`, and renders circles as data points. Axes are generated with `axisBottom` and `axisLeft`, and the SVG output includes a color legend that maps class labels to specific hex color values.
AI-generated descriptionT