Skip to main content
100%

Activity 7 Scatter Plot

✓ Published1🌍 Public
BBhavanaGIrni
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes