Skip to main content
100%

Fork of Iris Dataset Scatter Plot

✓ Published0🌍 Public
Ppreethamkesa
Last edited Mar 5, 2022
Created on Mar 5, 2022

This visualization displays the Iris Dataset as a scatter plot, mapping petal length to the x-axis and petal width to the y-axis, with points colored by species (blue for setosa, red for versicolor, black for virginica). The code loads the data via `d3.csv`, scales the axes with `d3.scaleLinear`, and renders the circles as SVG elements using `selectAll` and `join`, while also storing sepal measurements for potential use. Axes are added with `d3.axisLeft` and `d3.axisBottom`, and the chart fills the entire viewport.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes