Skip to main content
100%

Fork of Scatter Plot With Menus(Iris)

✓ Published1🌍 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
MIT Licensed

Similar vizzes