Skip to main content
100%

ICE-6: Creating a Scatter Plot with D3.js

✓ Published2🌍 Public
CChaitanya Galla
Last edited Mar 25, 2022
Created on Mar 3, 2022
Forked from HTML Starter

This example visualizes the Iris dataset as a scatter plot, mapping petal length and petal width to x and y positions, with circles colored by species (setosa, versicolor, and virginica). The D3.js code loads CSV data with `d3.csv`, parses numeric fields, and uses `scaleLinear` and `extent` to set scales. Axes are rendered with `axisLeft` and `axisBottom`, while `selectAll` and `join` bind data to SVG circles. The visualization fills the viewport and uses a fixed radius for all points.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes