🌍 Public
Polished Scatter Plot with Menus
This example renders the classic Iris dataset as an interactive scatter plot, allowing users to explore relationships between sepal and petal measurements by selecting which attributes appear on the X and Y axes via dropdown menus. Built with React components and rendered as SVG, the visualization uses D3's `scaleLinear` and `extent` functions to compute scales from the data, with axes generated by custom `AxisBottom` and `AxisLeft` components. The plot reads data from a CSV file using D3's `csv` utility, and each point displays a tooltip showing its precise value.
AI-generated descriptionA program that loads in Iris dataset using D3 utilities, and uses React to render a scatter plot.
MIT Licensed
Comments
Sign in to join the discussion.