Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Iris Scatter Plot 0516017

Public visualization

Viewing a saved revision (read-only)

e486f23c8ed64343bbfde078c1729749

Iris Scatter Plot 0516017

0 stars0๐ŸŒ Public
Ppotatowedges555
Last edited Oct 6, 2020
Created on Oct 6, 2020

This interactive scatter plot visualizes Fisher's Iris dataset, displaying the relationship between two flower measurements (from sepal length/width and petal length/width) as colored points representing the three Iris species. Users can dynamically switch which measurement appears on the x- and y-axes via dropdown menus rendered in HTML. The visualization uses D3 v5 to create an SVG canvas, with `d3.scaleLinear` for axes, `d3.axisLeft` and `d3.axisBottom` for tick marks, and `d3.scaleOrdinal` to map species to semi-transparent red, green, and blue fill colors. The code rebuilds the plot from scratch whenever an axis selection changes, removing all SVG elements and re-rendering from the source CSV data.

AI-generated description