Fork of Fork of Polished Scatter Plot with Menus
This interactive scatter plot displays the Iris Dataset, a classic multivariate dataset containing measurements of sepal and petal dimensions across three iris species. Users can dynamically select which attributes to plot on the x and y axes using two dropdown menus, allowing exploration of relationships between all four numeric measurements. Built with React and D3 v5, the visualization renders as an SVG using d3.scaleLinear for axes and data scaling, with custom AxisBottom, AxisLeft, and Marks components mapping data points as circles. The code leverages d3.csv for asynchronous data loading and React state management (useState, useCallback) to update the visualization in real-time when menu selections change.
AI-generated descriptionA scatter plot of The Iris Dataset.