🌍 Public
Viewing a saved revision (read-only)
79ee6f5c856e4c838e6d66f7ac7517df
Fork of Activity 7 Scatter Plot
This scatter plot visualizes the Iris dataset, plotting petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, virginica) using a custom `marker` function. The visualization uses D3 v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from the `d3` namespace to construct the plot. Data is loaded via `d3.csv` from a remote GitHub URL, with SVG circles rendered through the `join` API. The code also includes an attempt to set `rx` and `ry` attributes based on sepal dimensions, though the circles remain fixed at radius 5.
AI-generated description