Skip to main content
100%

Iris Dataset Scatter Plots with Color Legend

✓ Published0🌍 Public
Sstephanie0215
Last edited Sep 28, 2022
Created on Sep 24, 2022
Forked from Scatter Plots

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 description

T

MIT Licensed

Similar vizzes