🌍 Public
Viewing a saved revision (read-only)
9eacb4bdd3ee4e37ac295c2ad2c22aad
Scatterplot 101
This example displays the classic Iris dataset as a scatterplot, mapping petal length on the x-axis against sepal width on the y-axis to reveal species clustering. The visualization is rendered as an SVG using D3 v7, with data loaded asynchronously from a CSV file via the `csv` function. The code employs `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to construct linear scales and axes, then draws circles with fixed radius for each data point.
AI-generated description