Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot With Menus(Iris)

Public visualization

Viewing a saved revision (read-only)

71934b853f58430a888892afdaffaed0

Fork of Scatter Plot With Menus(Iris)

0 stars1🌍 Public
黃黃歆善
Last edited Sep 23, 2023
Created on Sep 19, 2023

An interactive scatter plot of the Iris dataset lets users explore relationships between variables. Two dropdown menus, built with a reusable `dropdownMenu` function, select which attributes appear on the x- and y-axes. The visualization uses D3 v7's `scaleLinear` for numeric fields and `scaleBand` for the categorical "class" column, rendering points via `transition` animations. Axis labels update dynamically, and axes are drawn with `axisBottom` and `axisLeft`. The code loads data from `iris.csv` and scales circles with a radius of 10.

AI-generated description