Skip to main content
100%

Scatterplot with Menus

✓ Published1🌍 Public
Rrmgoldberg24
Last edited Jan 30, 2023
Created on Jan 28, 2023

Two dropdown menus control which numeric measurements from the Iris dataset appear on the x- and y-axes of an SVG scatterplot. Built with React and D3 v7, the visualization uses `d3.scaleLinear` to map sepal and petal dimensions to axes, rendering circles with a constant radius. The code constructs reusable `AxisBottom`, `AxisLeft`, and `Marks` components, and updates the plot dynamically through React state when menu selections change. Data is loaded asynchronously via `d3.csv` from Curran’s gist.

AI-generated description

A scatterplot of the The Iris Dataset.

MIT Licensed

Similar vizzes