Skip to main content
100%

Activity6_tutorial3.1

✓ Published0🌍 Public
Aa9.hemraj@gmail.com
Last edited Oct 31, 2025
Created on Oct 30, 2025

This visualization displays the classic Iris dataset as an interactive-looking scatter plot, mapping petal length on the x-axis and petal width on the y-axis. Circles are colored by species, with setosa in skyblue, versicolor in lightgreen, and virginica in orange, using a fixed radius of 5 pixels. The code loads data from a GitHub gist via `d3.csv` and parses numeric fields with a custom row function. It constructs scales with `d3.scaleLinear` and `d3.extent`, draws axes with `d3.axisLeft` and `d3.axisBottom`, and renders SVG circles using `d3.selectAll` and `.join`. The page uses full-window dimensions with custom margins and green axis labels.

AI-generated description
MIT Licensed

Similar vizzes