Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
MMario Ibarra
Last edited Apr 21, 2021
Created on Apr 21, 2021

This interactive scatter plot displays measurements from the Iris Dataset, letting users compare four flower attributes (sepal and petal length/width) by selecting which to plot on the X and Y axes. Each point is colored by iris species, with a color legend identifying the three varieties. The visualization is built with React and uses D3’s `scaleLinear`, `scaleOrdinal`, and `extent` functions to map data to positions and colors, rendering circles as SVG elements. Dropdown menus control the axis selections, while D3’s `csv` loads the data asynchronously.

AI-generated description

A scatter plot of The Iris Dataset. Scatter Plot with Menus

MIT Licensed

Similar vizzes