🌍 Public
Viewing a saved revision (read-only)
ccc72bda86184fdba4e5317b4b19b7d1
Activity6_Tutorial3.2
This scatter plot visualizes the Iris dataset, showing the relationship between sepal length and petal length for three species of iris flowers. Each species is distinguished by a unique symbol shape: circles for setosa, squares for versicolor, and triangles for virginica, with a custom legend generated by the `shapeLegend` function. The chart uses D3 v7’s `scaleOrdinal`, `scaleLinear`, and `d3.symbol` to render SVG marks, along with axes created via `d3.axisBottom` and `d3.axisLeft`. The data is loaded from a CSV file and mapped to numeric values before rendering.
AI-generated description