Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Iris Scatter Plot

Public visualization

Viewing a saved revision (read-only)

2bbd39a52fc84777a269059418b9aa8e

Iris Scatter Plot

0 stars1🌍 Public
YYunLing
Last edited Sep 23, 2023
Created on Sep 15, 2023

This scatter plot visualizes the iris dataset, showing sepal length against sepal width for three flower species, with each species colored distinctly via a custom color legend. The visualization uses D3 v5 to load CSV data and build an SVG scene, employing `scaleLinear` for the axes, `scaleOrdinal` for color encoding, and `axisBottom`/`axisLeft` to render gridlines. Semi-transparent circles reveal overlapping points, while a reusable `colorLegend` module generates a categorical legend with labeled circles and a background rectangle.

AI-generated description