Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter_Plot_with_Color_Legend

Public visualization

Viewing a saved revision (read-only)

ceb8c626a0644a3494325e0a32bc9e9b

Scatter_Plot_with_Color_Legend

0 stars0🌍 Public
Mmartin
Last edited Jul 31, 2021
Created on Jul 28, 2021

This scatter plot visualizes the Iris Dataset, showing petal length against sepal width for three iris species, with each point colored by species and accompanied by a categorical color legend. The React-based visualization uses d3.scaleLinear for both axes, d3.scaleOrdinal for color mapping, and renders as SVG. The code imports axis components, color legend, and marks, while loading data asynchronously via d3.csv. Interactive tooltips appear on hover through SVG title elements, formatted using d3.format.

AI-generated description

A scatter plot of The Iris Dataset with color legend.