Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork

Public visualization

Viewing a saved revision (read-only)

c5aec868132d49c2950f618944cafa57

Fork

0 stars0🌍 Public
Wweird_danger
Last edited Sep 11, 2024
Created on Sep 11, 2024

This interactive scatter plot from the gallery visualizes the classic Iris flower dataset, with three species (setosa, versicolor, and virginica) distinguished by red, blue, and green semitransparent circles. Built with D3.js, it uses `d3.csv` to load data, `d3.scaleLinear()` for axis scaling, and `d3.scaleOrdinal()` for color mapping. Two dropdown menus let users choose which numeric attribute (sepal length/width or petal length/width) maps to the X and Y axes, triggering a full re-render of the SVG plot via the `render` function.

AI-generated description