Fork of Fork of Scatter Plot with Menus Including Species
✓ Published0🌍 Public
Ccsantiagopaz
Last edited Nov 14, 2023
Created on Nov 14, 2023
A scatter plot of the Iris dataset uses D3 v6 selection joins and transitions to animate circles between axes as users change the X and Y variables through two dropdown menus. The reusable scatterPlot module applies either d3.scaleLinear or d3.scalePoint depending on whether the selected column is quantitative or categorical, and renders axes with d3.axisBottom and d3.axisLeft. The menu component uses a d3.dispatch for change events.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.
MIT Licensed