🌍 Public
Viewing a saved revision (read-only)
3c82e4d8b7fc47929dc11a3bfb4377bb
Activity8_Task3.2
This example visualizes the Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. The code uses a d3 scaleOrdinal and symbol generator to assign different shapes to each iris species, with a legend positioned on the right side. Data is loaded asynchronously via fetch from a GitHub-hosted CSV, parsed with d3.csvParse, and rendered using a SVG canvas. Axes are built using axisLeft and axisBottom.
AI-generated description