🌍 Public
Viewing a saved revision (read-only)
5a0ffc5f35fc4b64b3ecb06d2d33962d
Species Stratified Animated Scatter Plot with Menus
An interactive scatter plot visualizes the Iris dataset, with menus to switch the X and Y axes among sepal and petal measurements and to filter points by species. The d3.v6 code uses a reusable `scatterPlot` module with `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `transition` to animate circle positions and axis updates. Species stratification is implemented by filtering data against the selected z-value, with a 1000-millisecond transition delaying updates for a polished effect.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.