Skip to main content
100%

A2Q4

✓ Published0🌍 Public
MmNamratha25
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from scatterplot

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes