🌍 Public
Viewing a saved revision (read-only)
bd4c8db18eb345fdbe4a9f0144522f6b
A2Q4
This example visualizes the classic Iris dataset with a scatter plot comparing petal length on the x-axis against sepal length on the y-axis. Each point represents a flower sample, colored by species (setosa, versicolor, or virginica) via CSS classes. The code uses D3 v7’s `csv`, `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` to load the data, map values to screen coordinates, and render axes. SVG circles are joined with data using the `join` method, producing a clear taxonomic distribution.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.