Scatter Plot with Iris DataSet
✓ Published1🌍 Public
This example visualizes the Iris flower dataset using a scatter plot, mapping petal length and petal width to the x and y axes, with each point colored by species (setosa, versicolor, or virginica). It loads CSV data via D3’s `csv` function, transforms numeric columns, and renders SVG circles with `selectAll` and `join`. The plot uses `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` to position points and axes, with custom margins and labels. The data source is a remote GitHub-hosted CSV file.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed