Skip to main content
100%

Fork of Fork of Iris Dataset Scatter Plot

✓ Published0🌍 Public
AAlankruthSai
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example visualizes the Iris Dataset as a scatter plot, mapping petal length to the x-axis and petal width to the y-axis. Points are colored by species—yellow for setosa, green for versicolor, and black for virginica—using a custom marker function. Built with D3 v6, it loads CSV data via `d3.csv`, scales axes with `scaleLinear` and `extent`, and renders circles as SVG elements. Axis labels for petal length and sepal length are added as SVG text, with circles using attributes `rx` and `ry` that reference sepal measurements, 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