Fork of D3 Scatter Plot
✓ Published0🌍 Public
This example presents a scatter plot of the classic Iris dataset, mapping sepal length against petal length for individual flowers. The visualization is a direct fork of a D3.js v3 example, adapted to use the modern D3 v6 API, and rendered as an SVG that fills the browser window. The code constructs a linear scale for both axes using `scaleLinear` and `extent`, draws the data points as circles with a fixed radius, and adds labeled axes via `axisLeft` and `axisBottom`. It also employs the `join` operator for efficient, declarative updating of the circle marks. The plot is fully responsive, sizing itself to the window's dimensions.
AI-generated descriptionMIT Licensed