Skip to main content
100%

Fork of Iris Dataset Scatter Plot

✓ Published0🌍 Public
Ssaivinay143
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example displays the Iris Dataset as a scatter plot, encoding petal length and width along the x- and y-axes, with points colored by species (setosa, versicolor, and virginica). Built with D3 v6 and rendered as SVG, it uses `d3.csv` to load the data, `d3.scaleLinear` for axes, and `d3.axisLeft` and `d3.axisBottom` to draw the chart’s scales. The visualization fixes the point radius at 4 pixels but additionally sets `rx` and `ry` attributes on each circle to the sepal dimensions, though these do not affect the visual shape.

AI-generated description

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

MIT Licensed

Similar vizzes