Activity 7 Scatter Plot
✓ Published1🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with points colored by species (setosa, versicolor, and virginica) using skyblue, lightgreen, and orange. Built with D3 v6 in a React context, the code loads CSV data from GitHub, applies linear scales with `scaleLinear`, and renders SVG circles with attributes for x, y, fill, and radius. Axis labels appear in green text, and the plot resizes to fill the browser window using `window.innerWidth` and `window.innerHeight`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed