Skip to main content
100%

Fork of Iris Dataset Scatter Plot

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

This scatter plot visualizes the Iris Dataset, mapping petal length and width on the x- and y-axes while coloring each point by species (red, blue, green). It uses D3.js v6 with `d3.csv` to load data, `d3.scaleLinear` for axes, and `d3.axisLeft`/`d3.axisBottom` to render scales. Circle marks are appended via `selectAll` and `join`, with fill colors assigned through a custom switch function. The SVG canvas fills the browser window, and the code also parses sepal dimensions but uses them only as unused attributes.

AI-generated description

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

MIT Licensed

Similar vizzes