Skip to main content
100%

Scatter Plot with Color Legend

✓ Published4🌍 Public
MMichael Bruno
Last edited Feb 3, 2023
Created on Feb 3, 2023

This interactive scatter plot visualizes the Iris dataset, allowing users to explore relationships between sepal and petal measurements across three flower species. Dropdown menus let viewers switch the X and Y axes among four numeric attributes, while a color legend distinguishes species using d3.scaleOrdinal with three categorical colors. The visualization renders as SVG using React components, with d3.scaleLinear handling axis scales and d3.extent computing domains. Marks are drawn as colored circles with tooltips showing values. The data loads asynchronously via d3.csv from a GitHub gist.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes