Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
PPeter Krevenets
Last edited Mar 25, 2021
Created on Mar 25, 2021

This interactive scatter plot visualizes the Iris dataset, displaying sepal and petal measurements for three flower species distinguished by color. Users can switch the x- and y-axes between four measurement attributes via dropdown menus. The example uses React with D3 v6 scales and axes, rendering SVG circles and a custom color legend. Data is loaded asynchronously using D3’s `csv` loader and mapped to linear scales with `.nice()` formatting.

AI-generated description

A scatter plot of Iris Data with color legend.

MIT Licensed

Similar vizzes