Fork of Activity 7 Scatter Plot
✓ Published0🌍 Public
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 descriptionMIT Licensed