🌍 Public
Viewing a saved revision (read-only)
93e727f9c2e141beaa0d12e36f374fb5
Fork of Iris Dataset Scatter Plot
DDanthalakirankumar
Last edited Mar 7, 2022
Created on Mar 7, 2022
This example visualizes the Iris dataset, plotting petal length and width for individual flowers, with each species (setosa, versicolor, virginica) assigned a distinct color (blue, red, black). It uses D3 v6 to fetch the CSV data via `d3.csv`, then maps the values to screen coordinates using `d3.scaleLinear` and `d3.extent`. Circles are rendered with an SVG `join` operation, and axes are added with `d3.axisLeft` and `d3.axisBottom`. The plot fills the browser window, leveraging a full-screen SVG canvas.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.