Refactor Animated Scatter Plot with Menus
✓ Published1🌍 Public
This interactive scatter plot lets users explore the classic Iris Dataset by switching the X and Y axes via dropdown menus. The visualization uses D3 v6 with an SVG rendering approach, animating circle positions and axes over one-second transitions. The reusable chart pattern employs `selection.join` for enter/update/exit cycles, while the menu component handles user input through an event dispatcher. Data is loaded asynchronously via `d3.csv` and `d3.json`, with scales and axes created using `scaleLinear`, `axisLeft`, and `axisBottom`.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.
MIT Licensed