Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Menus Legend

Public visualization

Viewing a saved revision (read-only)

0fa8c4a966a94b7fa4bf52831ac18432

Scatter Plot with Menus Legend

0 stars0🌍 Public
AAndre J Denais
Last edited Aug 12, 2021
Created on Aug 12, 2021

This interactive scatter plot visualizes the Iris flower dataset, letting users switch between quantitative attributes (sepal/petal width and length) and categorical species for the x and y axes via dropdown menus. Built with D3 v7, it uses `scaleLinear` and `scalePoint` to adapt axes to data types, with animated transitions on circles and axes. The chart renders as SVG with a reusable `scatterPlot` function and a custom `menu` component that dispatches change events.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.