Scatter Plot with Menus
This interactive scatter plot visualizes the Iris flower dataset, allowing users to dynamically select which measurements (sepal length, sepal width, petal length, petal width, or species) appear on the x- and y-axes via two dropdown menus. The React application uses D3 v5 functions like `scaleLinear`, `extent`, and `csv` to fetch and scale the data, rendering SVG circles for each flower with hover tooltips. Axis components are built from D3 scales, and state management in React handles attribute changes, re-computing scales and re-rendering the marks accordingly.