Interactive Color Legend
This interactive scatterplot displays the classic Iris flower dataset, with dropdown menus to select which measurement (sepal length, sepal width, petal length, petal width, or species) appears on each axis. The species of each flower determines the circle’s color using an ordinal color scale. The visualization, built with React and D3 v5, renders as SVG, with reusable axis and marks components. The axes are constructed with `scaleLinear`, while dropdown interactions update the scales and marks based on the selected attributes.