🌍 Public
Fork of Scatter Plot with Color Legend
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 descriptionA scatter plot of The Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.