Skip to main content
100%

Scatter Plot with Menus

✓ Published1🌍 Public
BBen Seebeck
Last edited Nov 8, 2021
Created on Nov 5, 2021

A scatter plot of the Iris dataset, rendered as SVG in React, lets users select which attribute appears on each axis through two dropdown menus. The chart maps petal and sepal measurements, using `d3.scaleLinear` for scales and `d3.extent` to compute domains. Axes are drawn with shared `AxisBottom` and `AxisLeft` components, while `Marks` renders circles with tooltips. The code loads CSV data via `d3.csv`, and the dropdowns update state to reassign the x and y values dynamically.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes