Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Iris Scatter Plot

Public visualization

Viewing a saved revision (read-only)

faf26baea0134697a7b4b10587301ce2

Iris Scatter Plot

0 stars1🌍 Public
Ffloraho401
Last edited Sep 21, 2023
Created on Sep 19, 2023

This scatter plot visualizes the Iris dataset, showing sepal length on the x-axis and petal length on the y-axis, with each of the three species distinguished by color. The visualization uses D3 v7's scaleLinear for positioning, scaleOrdinal for categorical coloring, and the axisBottom and axisLeft components to create labeled axes. A separate color legend, built with custom SVG elements, maps each species to a specific color using a switch statement. Data is loaded from a local CSV file and parsed with d3.csvParse before being rendered as circular marks.

AI-generated description

A scatter plot of the Iris Dataset with a color legend.

See also: