Skip to main content
100%

Dataset Scatter Plot

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

This example visualizes the Iris Dataset as a scatter plot, mapping petal length and width along the x- and y-axes, with circles colored by species (setosa in red, versicolor in pink, and virginica in blue). It also encodes sepal length and width as the rx and ry attributes of each circle, though they remain unchanged due to a fixed radius. Built with D3 v6, the code loads CSV data via `d3.csv`, uses `scaleLinear` and `extent` for scales, and renders axes with `axisLeft` and `axisBottom`. All elements are drawn as SVG circles appended to the body.

AI-generated description

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

MIT Licensed

Similar vizzes