Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Menus

Public visualization

Viewing a saved revision (read-only)

aed0940cb6d74d3c9122cfc2e46781d9

Scatter Plot with Menus

0 stars0🌍 Public
NNelson M
Last edited Nov 23, 2023
Created on Nov 23, 2023

This scatter plot visualizes the Iris Dataset, allowing users to explore relationships between sepal and petal measurements. The example uses React with hooks to manage state for the X and Y axis attributes, which are selected via two dropdown menus. D3’s scaleLinear and extent functions compute the scales, while custom React components render the SVG axes and circle marks. Data is loaded asynchronously from a CSV using D3’s csv function with type coercion.

AI-generated description

A scatter plot of The Iris Dataset.