Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Color Legend

Public visualization

Viewing a saved revision (read-only)

58dd0ccffaf94d769fcfb2d2f4bbac0a

Fork of Scatter Plot with Color Legend

0 stars1🌍 Public
AAudrey
Last edited Nov 29, 2021
Created on Jul 20, 2021

This example visualizes the Iris dataset as an interactive scatter plot, with dropdown menus to select which sepal or petal measurements appear on the x and y axes. Points are color-coded by species using an ordinal scale, with a legend mapping each species to its corresponding color. The visualization is built as a React application that fetches data with d3.csv, uses d3.scaleLinear for positioning and d3.scaleOrdinal for color, and renders axes and marks as SVG elements via custom React components.

AI-generated description

A scatter plot of The Iris Dataset.