Skip to main content
100%

Scatter Plot with Colour Legend

✓ Published1🌍 Public
KKevin McMorrow
Last edited Oct 26, 2021
Created on Oct 26, 2021

This interactive scatter plot displays the Iris flower dataset, letting users compare any two measured attributes (sepal length, sepal width, petal length, petal width) by selecting them from dropdown menus. The species of each flower is encoded through color and shown in a separate legend. Built with React and D3 v7, the visualization uses `scaleLinear` for axes, `scaleOrdinal` for the categorical color mapping, and renders all marks and axes as SVG elements. The data is loaded asynchronously from a CSV file using D3’s `csv` function.

AI-generated description
MIT Licensed

Similar vizzes