Interactive Polished Scatter w/ Menu, Colors, and Legend
✓ Published4🌍 Public
AAnthony Ynami
Last edited Feb 23, 2021
Created on Feb 23, 2021
Forked from Polished Scatter w/ Menu, Colors, and Legend
This interactive scatter plot visualizes the Iris dataset, allowing users to explore relationships between four flower measurements via dropdown menus for the X and Y axes. The SVG rendering uses D3 scales and React state management to update axes and marks dynamically. A color legend groups the three species, and hovering over either the legend or data points highlights the corresponding species while fading others. The code builds custom React components for axes, marks, and the legend, using d3.scaleLinear, d3.scaleOrdinal, and d3.extent to drive the visualization.
AI-generated descriptionA Scatter Plot of the Iris Dataset
MIT Licensed