Skip to main content
100%

Fork of Scatter Plot with Color Legend

✓ Published1🌍 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.

MIT Licensed

Similar vizzes