Skip to main content
100%

Fork of Scatter Plot with Color Legend

✓ Published0🌍 Public
AAnthony Le
Last edited Aug 18, 2024
Created on Aug 18, 2024

This interactive scatter plot visualizes the Iris Dataset, mapping petal length and sepal width for each sample, with points colored by species using a D3 scaleOrdinal color scale. The visualization is built with React, using D3.forscaleLinear for positioning axes and marks, and renders to SVG. A custom color legend displays the three species, and hovering over a point reveals its petal length via a tooltip. The code imports D3 utilities like `csv`, `scaleLinear`, `scaleOrdinal`, and `format` to load data and manage scales.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

MIT Licensed

Similar vizzes