Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Colour Legend

Public visualization

Viewing a saved revision (read-only)

38699c30f80849ee9c19784625e273ba

Scatter Plot with Colour Legend

0 stars1🌍 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