Iris Dataset Scatter Plots with Color Legend
✓ Published0🌍 Public
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
MIT Licensed