Scatter Plot with Menus Legend
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris flower dataset, letting users switch between quantitative attributes (sepal/petal width and length) and categorical species for the x and y axes via dropdown menus. Built with D3 v7, it uses `scaleLinear` and `scalePoint` to adapt axes to data types, with animated transitions on circles and axes. The chart renders as SVG with a reusable `scatterPlot` function and a custom `menu` component that dispatches change events.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.
MIT Licensed