Skip to main content
100%

Fork of Animated Scatter Plot with Menus

✓ Published0🌍 Public
Jjonathanh21
Last edited Aug 30, 2022
Created on Aug 30, 2022

This interactive scatter plot visualizes the Iris dataset, allowing users to explore relationships between sepal and petal measurements through dropdown menus. The visualization uses D3 v6 with SVG rendering and transitions to animate circles as they reposition when axes change. Built with a reusable scatterPlot component using d3.scaleLinear, d3.extent, and axis generators, the code implements selection.join for smooth enter-update-exit patterns. Menus are created via a custom menu function that dispatches change events, triggering animated updates to the x and y axes.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes